]> git.lizzy.rs Git - rust.git/blob - tests/ui/slightly-nice-generic-literal-messages.rs
Rollup merge of #107355 - JohnTitor:issue-60755, r=compiler-errors
[rust.git] / tests / ui / slightly-nice-generic-literal-messages.rs
1 use std::marker;
2
3 struct Foo<T,U>(T, marker::PhantomData<U>);
4
5 fn main() {
6     match Foo(1.1, marker::PhantomData) {
7         1 => {}
8     //~^ ERROR mismatched types
9     //~| expected struct `Foo<{float}, _>`
10     //~| found type `{integer}`
11     //~| expected struct `Foo`, found integer
12     }
13
14 }