41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
15 lines
480 B
Plaintext
15 lines
480 B
Plaintext
error[E0282]: type annotations needed
|
|
--> $DIR/one-param-uninferred.rs:9:23
|
|
|
|
|
LL | let _: [u8; 17] = foo();
|
|
| ^^^ cannot infer the value of the const parameter `M` declared on the function `foo`
|
|
|
|
|
help: consider specifying the generic arguments
|
|
|
|
|
LL | let _: [u8; 17] = foo::<17, M>();
|
|
| +++++++++
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|