mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-17 19:14:16 +00:00
62ba3e70a1
The previous output was unintuitive to users.
11 lines
195 B
Rust
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() { }
|