rust/tests/ui/parser/issues/issue-112188.fixed
Esteban Küber 855444ec54 mv tests
2023-10-24 21:27:05 +00:00

15 lines
329 B
Rust

// 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 `,`
}