1 error[E0308]: mismatched types
2 --> $DIR/typeck_type_placeholder_mismatch.rs:13:21
4 LL | let x: Foo<_> = Bar::<usize>(PhantomData);
5 | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Foo`, found struct `Bar`
9 = note: expected struct `Foo<_>`
10 found struct `Bar<usize>`
12 error[E0308]: mismatched types
13 --> $DIR/typeck_type_placeholder_mismatch.rs:22:21
15 LL | let x: Foo<_> = Bar::<usize>(PhantomData);
16 | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Foo`, found struct `Bar`
18 | expected due to this
20 = note: expected struct `Foo<_>`
21 found struct `Bar<usize>`
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0308`.