mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-06 00:52:21 +00:00
15 lines
330 B
Plaintext
15 lines
330 B
Plaintext
//@ 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 `,`
|
|
}
|