]>
Commit | Line | Data |
---|---|---|
85aaf69f SL |
1 | use std::marker; |
2 | ||
3 | struct Foo<T,U>(T, marker::PhantomData<U>); | |
223e47cc LB |
4 | |
5 | fn main() { | |
85aaf69f | 6 | match Foo(1.1, marker::PhantomData) { |
1a4d82fc | 7 | 1 => {} |
85aaf69f | 8 | //~^ ERROR mismatched types |
60c5eb7d | 9 | //~| expected struct `Foo<{float}, _>` |
5bcae85e | 10 | //~| found type `{integer}` |
9ffffee4 | 11 | //~| expected `Foo<{float}, _>`, found integer |
223e47cc | 12 | } |
1a4d82fc | 13 | |
223e47cc | 14 | } |