blob: 47fb08e4d11f55b9b1d474508c06391f03bc45cc [file] [log] [blame]
//@ edition:2021
//@ run-rustfix
fn foo<T>(_: Box<T>) {}
fn bar<T>(_: impl Fn() -> Box<T>) {}
fn main() {
foo({}); //~ ERROR mismatched types
bar(|| {}); //~ ERROR mismatched types
}