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