summaryrefslogtreecommitdiffstats
path: root/tests/ui/slightly-nice-generic-literal-messages.rs
blob: a48598ce8d5a01dd450995b54bc7e5a3ab43e869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 struct `Foo`, found integer
    }

}