2020-10-08 15:23:01 -05:00
|
|
|
error[E0282]: type annotations needed
|
|
|
|
--> $DIR/one-param-uninferred.rs:15:23
|
|
|
|
|
|
|
|
|
LL | let _: [u8; 17] = foo();
|
|
|
|
| ^^^ cannot infer the value of const parameter `M` declared on the function `foo`
|
|
|
|
|
|
|
|
|
help: consider specifying the const argument
|
|
|
|
|
|
|
|
|
LL | let _: [u8; 17] = foo::<M>();
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~~~~~~~
|
2020-10-08 15:23:01 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|