1 A struct pattern attempted to extract a non-existent field from a struct.
3 Erroneous code example:
11 let thing = Thing { x: 0, y: 0 };
14 Thing { x, z } => {} // error: `Thing::z` field doesn't exist
18 If you are using shorthand field patterns but want to refer to the struct field
19 by a different name, you should rename it explicitly. Struct fields are
20 identified by the name used before the colon `:` so struct patterns should
21 resemble the declaration of the struct type being matched.
29 let thing = Thing { x: 0, y: 0 };
32 Thing { x, y: z } => {} // we renamed `y` to `z`