blob: 22f8e52b2bd6c7bf4fc710995444602c70f3f513 [file]
struct A {
b: usize,
c: usize
}
impl A {
fn foo(&self) {
let A { x, y } = self.d; //~ ERROR no field `d` on type `&A`
//~^ ERROR struct `A` does not have fields named `x` and `y`
//~| ERROR pattern does not mention fields `b` and `c`
}
}
fn main() {}