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