fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
735 B13 linesraw
1error[E0026]: struct `Thing` does not have a field named `z`
2  --> $DIR/E0026-teach.rs:11:23
3   |
4LL |         Thing { x, y, z } => {}
5   |                       ^ struct `Thing` does not have this field
6   |
7   = note: This error indicates that a struct pattern attempted to extract a non-existent field from a struct. Struct fields are identified by the name used before the colon : so struct patterns should resemble the declaration of the struct type being matched.
8           
9           If you are using shorthand field patterns but want to refer to the struct field by a different name, you should rename it explicitly.
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0026`.