]> git.lizzy.rs Git - rust.git/blob - tests/ui/type/type-check/cannot_infer_local_or_array.stderr
Make `output_filenames` a real query
[rust.git] / tests / ui / type / type-check / cannot_infer_local_or_array.stderr
1 error[E0282]: type annotations needed for `[_; 0]`
2   --> $DIR/cannot_infer_local_or_array.rs:2:9
3    |
4 LL |     let x = [];
5    |         ^   -- type must be known at this point
6    |
7 help: consider giving `x` an explicit type, where the placeholders `_` are specified
8    |
9 LL |     let x: [_; 0] = [];
10    |          ++++++++
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0282`.