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