blob: 5e73d8e38de816de29a7779624d2589e35fbc931 [file] [log] [blame]
// run-rustfix
#![allow(unused)]
struct Foo { x: i32 }
fn main() {
let f = Foo { x: 0 };
let Foo { .. } = f;
let Foo { .. } = f; //~ ERROR expected `}`, found `,`
let Foo { x, .. } = f;
let Foo { x, .. } = f; //~ ERROR expected `}`, found `,`
let Foo { x, .. } = f; //~ ERROR expected `}`, found `,`
}