rust/tests/ui/slightly-nice-generic-literal-messages.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
295 B
Rust
Raw Normal View History

use std::marker;
struct Foo<T,U>(T, marker::PhantomData<U>);
fn main() {
match Foo(1.1, marker::PhantomData) {
1 => {}
2015-01-12 06:01:44 +00:00
//~^ ERROR mismatched types
//~| expected struct `Foo<{float}, _>`
2016-07-28 16:49:31 +00:00
//~| found type `{integer}`
//~| expected struct `Foo`, found integer
}
}