summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/suggest-boxed-empty-block.fixed
blob: 46683aa095355d1fb8ac99feef34185f6b26b749 (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(Box::new(())); //~ ERROR mismatched types
    bar(|| Box::new(())); //~ ERROR mismatched types
}