Inna Palant | ff3f07a | 2019-07-11 16:15:26 -0700 | [diff] [blame] | 1 | struct A { |
2 | b: usize, | ||||
3 | c: usize | ||||
4 | } | ||||
5 | |||||
6 | impl A { | ||||
7 | fn foo(&self) { | ||||
8 | let A { x, y } = self.d; //~ ERROR no field `d` on type `&A` | ||||
9 | //~^ ERROR struct `A` does not have fields named `x`, `y` | ||||
10 | //~| ERROR pattern does not mention fields `b`, `c` | ||||
11 | } | ||||
12 | } | ||||
13 | |||||
14 | fn main() {} |