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