]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/suggest-closure-return-type-1.rs
Merge commit 'e8dca3e87d164d2806098c462c6ce41301341f68' into sync_from_cg_gcc
[rust.git] / src / test / ui / suggestions / suggest-closure-return-type-1.rs
1 fn unbound_drop(_: impl Sized) {}
2
3 fn main() {
4     unbound_drop(|| -> _ { [] });
5     //~^ ERROR type annotations needed for `[_; 0]`
6     //~| HELP try giving this closure an explicit return type
7 }