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