]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/suggest-closure-return-type-1.stderr
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[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    |
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`.