rust/tests/ui/inference/issue-83606.stderr

15 lines
417 B
Plaintext
Raw Normal View History

error[E0282]: type annotations needed for `[usize; N]`
2022-02-14 06:25:26 -06:00
--> $DIR/issue-83606.rs:8:9
|
LL | let _ = foo("foo");
2022-02-14 06:25:26 -06:00
| ^
|
2023-04-07 03:07:11 -05:00
help: consider giving this pattern a type, where the value of const parameter `N` is specified
2022-02-14 06:25:26 -06:00
|
LL | let _: [usize; N] = foo("foo");
2022-02-14 06:25:26 -06:00
| ++++++++++++
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0282`.