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