2019-09-30 10:38:08 -05:00
|
|
|
error[E0282]: type annotations needed
|
|
|
|
--> $DIR/issue-64662.rs:2:9
|
|
|
|
|
|
|
|
|
LL | A = foo(),
|
2022-02-14 06:25:26 -06:00
|
|
|
| ^^^ cannot infer type of the type parameter `T` declared on the function `foo`
|
2022-05-19 23:49:41 -05:00
|
|
|
|
|
2022-02-14 06:25:26 -06:00
|
|
|
help: consider specifying the generic argument
|
2022-05-19 23:49:41 -05:00
|
|
|
|
|
2022-02-14 06:25:26 -06:00
|
|
|
LL | A = foo::<T>(),
|
|
|
|
| +++++
|
2019-09-30 10:38:08 -05:00
|
|
|
|
|
|
|
error[E0282]: type annotations needed
|
|
|
|
--> $DIR/issue-64662.rs:3:9
|
|
|
|
|
|
|
|
|
LL | B = foo(),
|
2022-02-14 06:25:26 -06:00
|
|
|
| ^^^ cannot infer type of the type parameter `T` declared on the function `foo`
|
2022-05-19 23:49:41 -05:00
|
|
|
|
|
2022-02-14 06:25:26 -06:00
|
|
|
help: consider specifying the generic argument
|
2022-05-19 23:49:41 -05:00
|
|
|
|
|
2022-02-14 06:25:26 -06:00
|
|
|
LL | B = foo::<T>(),
|
|
|
|
| +++++
|
2019-09-30 10:38:08 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|