]> git.lizzy.rs Git - rust.git/blob - src/test/ui/structs/struct-fields-shorthand.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / 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 }