]> git.lizzy.rs Git - rust.git/blob - src/test/ui/slightly-nice-generic-literal-messages.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / 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 }