mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
15 lines
334 B
Rust
15 lines
334 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 `,`
|
|
}
|