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