mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
15 lines
462 B
Plaintext
15 lines
462 B
Plaintext
error[E0282]: type annotations needed
|
|
--> $DIR/fallback_inference.rs:4:5
|
|
|
|
|
LL | PhantomData
|
|
| ^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the struct `PhantomData`
|
|
|
|
|
help: consider specifying a concrete type for the type parameter `T`
|
|
|
|
|
LL | PhantomData::</* Type */>
|
|
| ++++++++++++++
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|