]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/suggest-closure-return-type-3.stderr
Merge commit 'd0cf3481a84e3aa68c2f185c460e282af36ebc42' into clippyup
[rust.git] / src / test / ui / suggestions / suggest-closure-return-type-3.stderr
1 error[E0282]: type annotations needed for the closure `fn() -> [_; 0]`
2   --> $DIR/suggest-closure-return-type-3.rs:2:17
3    |
4 LL |     let _v = || [];
5    |                 ^^ cannot infer type
6    |
7 help: give this closure an explicit return type without `_` placeholders
8    |
9 LL |     let _v = || -> [_; 0] { [] };
10    |                 +++++++++++    +
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0282`.