rust/src/test/ui/issues/issue-7813.stderr

12 lines
368 B
Plaintext
Raw Normal View History

2019-06-01 16:47:15 -05:00
error[E0282]: type annotations needed for `&[_; 0]`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-7813.rs:2:13
|
2019-03-09 06:03:44 -06:00
LL | let v = &[];
2018-07-18 14:35:20 -05:00
| - ^^^ cannot infer type
| |
| consider giving `v` the explicit type `&[_; 0]`, with the type parameters specified
error: aborting due to previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0282`.