mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
01b75e20f2
to avoid going over the existing limit now that the ui-fulldeps tests have been moved to ui.
14 lines
300 B
Rust
14 lines
300 B
Rust
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
|
|
}
|
|
|
|
}
|