]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0027-teach.stderr
Rollup merge of #47846 - roblabla:bugfix-ocaml, r=kennytm
[rust.git] / src / test / ui / error-codes / E0027-teach.stderr
1 error[E0027]: pattern does not mention field `name`
2   --> $DIR/E0027-teach.rs:22:9
3    |
4 22 |         Dog { age: x } => {}
5    |         ^^^^^^^^^^^^^^ missing field `name`
6    |
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.
8
9 error: aborting due to previous error
10