rust/tests/ui/consts/issue-64662.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
690 B
Plaintext
Raw Normal View History

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-02-14 12:25:26 +00:00
help: consider specifying the generic argument
|
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-02-14 12:25:26 +00:00
help: consider specifying the generic argument
|
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`.