error[E0027]: pattern does not mention field `name` | |
--> $DIR/E0027-teach.rs:12:9 | |
| | |
LL | Dog { age: x } => {} | |
| ^^^^^^^^^^^^^^ missing field `name` | |
| | |
= 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. | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0027`. |