1 error[E0609]: no field `d` on type `&A`
2 --> $DIR/struct-pat-derived-error.rs:8:31
4 LL | let A { x, y } = self.d;
5 | ^ help: a field with a similar name exists: `b`
7 error[E0026]: struct `A` does not have fields named `x`, `y`
8 --> $DIR/struct-pat-derived-error.rs:8:17
10 LL | let A { x, y } = self.d;
11 | ^ ^ struct `A` does not have these fields
13 error[E0027]: pattern does not mention fields `b`, `c`
14 --> $DIR/struct-pat-derived-error.rs:8:13
16 LL | let A { x, y } = self.d;
17 | ^^^^^^^^^^ missing fields `b`, `c`
19 help: include the missing fields in the pattern
21 LL | let A { x, y, b, c } = self.d;
23 help: if you don't care about these missing fields, you can explicitly ignore them
25 LL | let A { x, y, .. } = self.d;
28 error: aborting due to 3 previous errors
30 Some errors have detailed explanations: E0026, E0027, E0609.
31 For more information about an error, try `rustc --explain E0026`.