2023-01-14 12:32:17 -06:00
|
|
|
error[E0282]: type annotations needed for `[usize; N]`
|
2022-02-14 06:25:26 -06:00
|
|
|
--> $DIR/issue-83606.rs:8:9
|
2021-03-29 13:00:25 -05:00
|
|
|
|
|
2022-05-09 09:14:43 -05:00
|
|
|
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
|
|
|
|
|
2023-01-14 12:32:17 -06:00
|
|
|
LL | let _: [usize; N] = foo("foo");
|
2022-02-14 06:25:26 -06:00
|
|
|
| ++++++++++++
|
2021-03-29 13:00:25 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|