blob: ad0d4e41f7874b66e43f6d0d6ffe3419bc2609c6 [file] [log] [blame]
error[E0282]: type annotations needed for the closure `fn() -> [_; 0]`
--> $DIR/suggest-closure-return-type-3.rs:2:17
|
LL | let _v = || [];
| ^^ cannot infer type
help: give this closure an explicit return type without `_` placeholders
|
LL | let _v = || -> [_; 0] { [] };
| ^^^^^^^^^^^ ^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0282`.