fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
533 B11 linesraw
1error[E0027]: pattern does not mention field `name`
2  --> $DIR/E0027-teach.rs:12:9
3   |
4LL |         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
9error: aborting due to previous error
10
11For more information about this error, try `rustc --explain E0027`.