summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/suggest-closure-return-type-2.rs
blob: 25ed1882e8d2d1742265104a131f92769bc72019 (plain)
1
2
3
4
5
6
7
fn unbound_drop(_: impl Sized) {}

fn main() {
    unbound_drop(|| { [] })
    //~^ ERROR type annotations needed for `[_; 0]`
    //~| HELP try giving this closure an explicit return type
}