summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/suggest-closure-return-type-1.rs
blob: 8bb4219039b9392a0da56c9a1a45eff5453d98d1 (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
}