]> git.proxmox.com Git - rustc.git/blame - tests/ui/slightly-nice-generic-literal-messages.rs
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / slightly-nice-generic-literal-messages.rs
CommitLineData
85aaf69f
SL
1use std::marker;
2
3struct Foo<T,U>(T, marker::PhantomData<U>);
223e47cc
LB
4
5fn main() {
85aaf69f 6 match Foo(1.1, marker::PhantomData) {
1a4d82fc 7 1 => {}
85aaf69f 8 //~^ ERROR mismatched types
60c5eb7d 9 //~| expected struct `Foo<{float}, _>`
5bcae85e 10 //~| found type `{integer}`
9ffffee4 11 //~| expected `Foo<{float}, _>`, found integer
223e47cc 12 }
1a4d82fc 13
223e47cc 14}