blob: 64fc3df3d23f1cb6264f2128d61a0739b3f5ae19 [file] [log] [blame]
struct Foo {
a: usize,
}
fn main() {
let Foo {
a: _,
a: _
//~^ ERROR field `a` bound multiple times in the pattern
} = Foo { a: 29 };
let Foo {
a,
a: _
//~^ ERROR field `a` bound multiple times in the pattern
} = Foo { a: 29 };
let Foo {
a,
a: _,
//~^ ERROR field `a` bound multiple times in the pattern
a: x
//~^ ERROR field `a` bound multiple times in the pattern
} = Foo { a: 29 };
}