blob: 268009f65a5c1e9c51b3ca768e87a43042caff59 [file] [log] [blame] [edit]
use std::marker;
struct Foo<T,U>(T, marker::PhantomData<U>);
fn main() {
match Foo(1.1, marker::PhantomData) {
1 => {}
//~^ ERROR mismatched types
//~| expected struct `Foo<{float}, _>`
//~| found type `{integer}`
//~| expected `Foo<{float}, _>`, found integer
}
}