summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0027-teach.stderr
blob: 1c5333d76a85e5392cab31d4b1b8ff8893720557 (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0027]: pattern does not mention field `name`
  --> $DIR/E0027-teach.rs:22: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`.