rust/tests/ui/const-generics/infer/cannot-infer-const-args.stderr

15 lines
399 B
Plaintext
Raw Normal View History

error[E0282]: type annotations needed
--> $DIR/cannot-infer-const-args.rs:6:5
|
LL | foo();
2022-02-14 06:25:26 -06:00
| ^^^ cannot infer the value of the const parameter `X` declared on the function `foo`
|
2022-02-14 06:25:26 -06:00
help: consider specifying the generic argument
|
LL | foo::<X>();
2022-02-14 06:25:26 -06:00
| +++++
error: aborting due to previous error
For more information about this error, try `rustc --explain E0282`.