2020-08-09 01:19:57 -05:00
|
|
|
error[E0282]: type annotations needed
|
|
|
|
--> $DIR/cannot-infer-const-args.rs:12:5
|
|
|
|
|
|
|
|
|
LL | foo();
|
2020-09-23 03:44:11 -05:00
|
|
|
| ^^^ cannot infer the value of const parameter `X` declared on the function `foo`
|
2020-10-08 15:23:01 -05:00
|
|
|
|
|
|
|
|
help: consider specifying the const argument
|
|
|
|
|
|
|
|
|
LL | foo::<X>();
|
|
|
|
| ^^^^^^^^
|
2020-08-09 01:19:57 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|