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

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

15 lines
511 B
Plaintext
Raw Normal View History

error[E0282]: type annotations needed
--> $DIR/issue-25368.rs:11:27
2018-07-15 21:11:54 +00:00
|
LL | tx.send(Foo{ foo: PhantomData });
| ^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the struct `PhantomData`
2022-02-14 12:25:26 +00:00
|
help: consider specifying the generic argument
2022-02-14 12:25:26 +00:00
|
LL | tx.send(Foo{ foo: PhantomData::<T> });
| +++++
2018-07-15 21:11:54 +00:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0282`.