]> git.lizzy.rs Git - rust.git/blob - src/test/ui/slightly-nice-generic-literal-messages.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[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 }