]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/suggest-closure-return-type-1.stderr
Auto merge of #65099 - pnkfelix:issue-63154-needed-more-normalize, r=nagisa
[rust.git] / src / test / ui / suggestions / suggest-closure-return-type-1.stderr
1 error[E0282]: type annotations needed for the closure `fn() -> [_; 0]`
2   --> $DIR/suggest-closure-return-type-1.rs:2:24
3    |
4 LL |     let _v = || -> _ { [] };
5    |                        ^^ cannot infer type
6 help: give this closure an explicit return type without `_` placeholders
7    |
8 LL |     let _v = || -> [_; 0] { [] };
9    |                    ^^^^^^
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0282`.