2015-02-12 09:29:52 -06:00
|
|
|
use std::marker;
|
|
|
|
|
|
|
|
struct Foo<T,U>(T, marker::PhantomData<U>);
|
2014-01-13 05:08:28 -06:00
|
|
|
|
|
|
|
fn main() {
|
2015-02-12 09:29:52 -06:00
|
|
|
match Foo(1.1, marker::PhantomData) {
|
2014-01-13 05:08:28 -06:00
|
|
|
1 => {}
|
2015-01-12 00:01:44 -06:00
|
|
|
//~^ ERROR mismatched types
|
2019-11-13 16:16:56 -06:00
|
|
|
//~| expected struct `Foo<{float}, _>`
|
2016-07-28 11:49:31 -05:00
|
|
|
//~| found type `{integer}`
|
2023-01-02 20:00:33 -06:00
|
|
|
//~| expected `Foo<{float}, _>`, found integer
|
2014-01-13 05:08:28 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|