]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-14541.rs
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-14541.rs
1 struct Vec2 { y: f32 }
2 struct Vec3 { y: f32, z: f32 }
3
4 fn make(v: Vec2) {
5     let Vec3 { y: _, z: _ } = v;
6     //~^ ERROR mismatched types
7     //~| expected type `Vec2`
8     //~| found type `Vec3`
9     //~| expected struct `Vec2`, found struct `Vec3`
10 }
11
12 fn main() { }