Files
rust/tests/ui/impl-trait/fallback_inference.stderr
T
2026-04-20 16:46:57 +06:00

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`.