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