2022-07-01 12:09:33 +00:00
|
|
|
error[E0282]: type annotations needed
|
|
|
|
--> $DIR/issue-25368.rs:11:27
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
2022-07-01 12:09:33 +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
|
|
|
|
|
2022-07-01 12:09:33 +00:00
|
|
|
help: consider specifying the generic argument
|
2022-02-14 12:25:26 +00:00
|
|
|
|
|
2022-07-01 12:09:33 +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`.
|