rust/tests/ui/issues/issue-6458.stderr

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

15 lines
519 B
Plaintext
Raw Normal View History

error[E0282]: type annotations needed
2022-02-14 13:25:26 +01:00
--> $DIR/issue-6458.rs:9:22
|
2018-02-23 03:42:32 +03:00
LL | foo(TypeWithState(marker::PhantomData));
2022-02-14 13:25:26 +01:00
| ^^^^^^^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the struct `PhantomData`
|
2022-02-14 13:25:26 +01:00
help: consider specifying the generic argument
|
2022-02-14 13:25:26 +01:00
LL | foo(TypeWithState(marker::PhantomData::<T>));
| +++++
error: aborting due to previous error
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0282`.