blob: aa4cb9d4d18d9a6e7034c1e01596af24cd1d0aa7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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`.
|