rust/tests/ui/issues/issue-14541.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

11 lines
195 B
Rust

struct Vec2 { y: f32 }
struct Vec3 { y: f32, z: f32 }
fn make(v: Vec2) {
let Vec3 { y: _, z: _ } = v;
//~^ ERROR mismatched types
//~| expected `Vec2`, found `Vec3`
}
fn main() { }