rust/tests/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
366 B
Plaintext
Raw Normal View History

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