rust/src/test/ui/const-generics/infer/one-param-uninferred.full.stderr

15 lines
464 B
Plaintext
Raw Normal View History

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>();
| ~~~~~~~~
error: aborting due to previous error
For more information about this error, try `rustc --explain E0282`.