1 error[E0027]: pattern does not mention field `name`
2 --> $DIR/E0027-teach.rs:22:9
4 22 | Dog { age: x } => {}
5 | ^^^^^^^^^^^^^^ missing field `name`
7 = note: This error indicates that a pattern for a struct fails to specify a sub-pattern for every one of the struct's fields. Ensure that each field from the struct's definition is mentioned in the pattern, or use `..` to ignore unwanted fields.
9 error: aborting due to previous error