]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/struct-fields-shorthand.rs
Rollup merge of #106446 - bzEq:fix-unwind-lsda, r=Amanieu
[rust.git] / tests / ui / structs / struct-fields-shorthand.rs
1 struct Foo {
2     x: i32,
3     y: i32
4 }
5
6 fn main() {
7     let (x, y, z) = (0, 1, 2);
8     let foo = Foo {
9         x, y, z //~ ERROR struct `Foo` has no field named `z`
10     };
11 }