rust/tests/ui/issues/issue-7813.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
420 B
Plaintext
Raw Normal View History

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
|
2019-03-09 12:03:44 +00:00
LL | let v = &[];
| ^ --- 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] = &[];
| +++++++++
error: aborting due to previous error
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0282`.