1error[E0560]: struct `Foo` has no field named `z`
2  --> $DIR/struct-fields-shorthand.rs:9:15
3   |
4LL |         x, y, z
5   |               ^ `Foo` does not have this field
6   |
7   = note: available fields are: `x`, `y`
8
9error: aborting due to previous error
10
11For more information about this error, try `rustc --explain E0560`.
12