1 error[E0026]: struct `Thing` does not have a field named `z`
2 --> $DIR/E0026-teach.rs:11:23
4 LL | Thing { x, y, z } => {}
5 | ^ struct `Thing` does not have this field
7 = note: This error indicates that a struct pattern attempted to extract a non-existent field from a struct. Struct fields are identified by the name used before the colon : so struct patterns should resemble the declaration of the struct type being matched.
9 If you are using shorthand field patterns but want to refer to the struct field by a different name, you should rename it explicitly.
11 error: aborting due to previous error
13 For more information about this error, try `rustc --explain E0026`.