rust/src/test/ui/array-slice-vec/infer_array_len.stderr

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

15 lines
397 B
Plaintext
Raw Normal View History

2020-03-30 17:13:20 +00:00
error[E0282]: type annotations needed
--> $DIR/infer_array_len.rs:19:9
|
LL | let [_, _] = a.into();
2022-02-14 12:25:26 +00:00
| ^^^^^^
2020-03-30 17:13:20 +00:00
|
2022-12-11 02:40:04 +00:00
help: consider giving this pattern a type, where the placeholder `Type` is specified
2022-02-14 12:25:26 +00:00
|
2022-12-11 02:40:04 +00:00
LL | let [_, _]: Type = a.into();
| ++++++
2020-03-30 17:13:20 +00:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0282`.