2019-06-01 21:47:15 +00:00
|
|
|
error[E0282]: type annotations needed for `&[_; 0]`
|
2022-02-14 12:25:26 +00:00
|
|
|
--> $DIR/issue-7813.rs:2:9
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let v = &[];
|
2022-06-25 16:28:27 +00:00
|
|
|
| ^ --- type must be known at this point
|
2022-02-14 12:25:26 +00:00
|
|
|
|
|
|
|
|
help: consider giving `v` an explicit type, where the placeholders `_` are specified
|
|
|
|
|
|
|
|
|
LL | let v: &[_; 0] = &[];
|
|
|
|
| +++++++++
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0282`.
|