2020-08-09 05:01:19 +00:00
|
|
|
error[E0282]: type annotations needed
|
2021-08-27 16:04:57 +00:00
|
|
|
--> $DIR/uninferred-consts.rs:9:9
|
2020-08-09 05:01:19 +00:00
|
|
|
|
|
|
|
|
LL | Foo.foo();
|
2023-02-21 21:11:08 +00:00
|
|
|
| ^^^ cannot infer the value of the const parameter `A` declared on the method `foo`
|
2020-10-08 20:23:01 +00:00
|
|
|
|
|
2022-02-14 12:25:26 +00:00
|
|
|
help: consider specifying the generic arguments
|
2020-10-08 20:23:01 +00:00
|
|
|
|
|
2022-02-14 12:25:26 +00:00
|
|
|
LL | Foo.foo::<A, B>();
|
|
|
|
| ++++++++
|
2020-08-09 05:01:19 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2020-08-09 05:01:19 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|