blob: e19670a50184130114ae274e91d30d372365bbe2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#![feature(async_closure)]
// 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
}
|