2020-10-08 22:23:01 +02:00
|
|
|
error[E0282]: type annotations needed
|
2021-08-27 18:04:57 +02:00
|
|
|
--> $DIR/one-param-uninferred.rs:9:23
|
2020-10-08 22:23:01 +02:00
|
|
|
|
|
|
|
|
LL | let _: [u8; 17] = foo();
|
2022-02-14 13:25:26 +01:00
|
|
|
| ^^^ cannot infer the value of the const parameter `M` declared on the function `foo`
|
2020-10-08 22:23:01 +02:00
|
|
|
|
|
2022-02-14 13:25:26 +01:00
|
|
|
help: consider specifying the generic arguments
|
2020-10-08 22:23:01 +02:00
|
|
|
|
|
2022-07-19 02:25:14 +03:00
|
|
|
LL | let _: [u8; 17] = foo::<17, M>();
|
|
|
|
| +++++++++
|
2020-10-08 22:23:01 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|