use std::marker; struct Foo(T, marker::PhantomData); fn main() { match Foo(1.1, marker::PhantomData) { 1 => {} //~^ ERROR mismatched types //~| expected struct `Foo<{float}, _>` //~| found type `{integer}` //~| expected struct `Foo`, found integer } }