blob: f49a8ff8bdda6bbe7e7f0da7b0326fd440521940 [file] [log] [blame]
Inna Palantff3f07a2019-07-11 16:15:26 -07001struct A {
2 b: usize,
3 c: usize
4}
5
6impl 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
14fn main() {}