1 error[E0308]: mismatched types
2 --> $DIR/typeck_type_placeholder_mismatch.rs:23:21
4 LL | let x: Foo<_> = Bar::<usize>(PhantomData);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Foo`, found struct `Bar`
7 = note: expected type `Foo<_>`
8 found type `Bar<usize>`
10 error[E0308]: mismatched types
11 --> $DIR/typeck_type_placeholder_mismatch.rs:32:21
13 LL | let x: Foo<_> = Bar::<usize>(PhantomData);
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Foo`, found struct `Bar`
16 = note: expected type `Foo<_>`
17 found type `Bar<usize>`
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0308`.