]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/suggest-closure-return-type-3.rs
Rollup merge of #93080 - SkiFire13:itermut-as_mut_slice, r=m-ou-se
[rust.git] / src / test / ui / suggestions / suggest-closure-return-type-3.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 }