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-16 05:11:54 +08:00
|
LL | tx.send(Foo{ foo: PhantomData });
| ^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the struct `PhantomData`
2022-02-14 20:25:26 +08:00
|
help: consider specifying the generic argument
2022-02-14 20:25:26 +08:00
|
LL | tx.send(Foo{ foo: PhantomData::<T> });
| +++++
2018-07-16 05:11:54 +08:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0282`.