summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type-inference/unbounded-associated-type.stderr
blob: e0fecc72f30928c68bb0e8f6be80b30836123af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0282]: type annotations needed
  --> $DIR/unbounded-associated-type.rs:15:7
   |
LL |     S(std::marker::PhantomData).foo();
   |       ^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the struct `PhantomData`
   |
help: consider specifying the generic argument
   |
LL |     S(std::marker::PhantomData::<T>).foo();
   |                               +++++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0282`.