rust/tests/ui/slightly-nice-generic-literal-messages.rs
Esteban Küber 62ba3e70a1 Modify primary span label for E0308
The previous output was unintuitive to users.
2023-01-30 20:12:19 +00:00

15 lines
300 B
Rust

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 `Foo<{float}, _>`, found integer
}
}