about summary refs log tree commit diff
path: root/tests/ui/parser/issues/issue-112188.fixed
blob: a4fdf5567f7a8fbf50d9fa3a4a65e06c9a4d4659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ 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 `,`
}