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