summary refs log tree commit diff
path: root/src/test/ui/issues/issue-17551.stderr
blob: 48405a292f3aa9d0e8e8fa4c984f14e068830f63 (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0282]: type annotations needed for `B<T>`
  --> $DIR/issue-17551.rs:6:15
   |
LL |     let foo = B(marker::PhantomData);
   |         ---   ^ cannot infer type for type parameter `T` declared on the struct `B`
   |         |
   |         consider giving `foo` the explicit type `B<T>`, where the type parameter `T` is specified

error: aborting due to previous error

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