summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-10392-2.rs
blob: 30628ae31c3bdab3ef901214647fb466f2d28e71 (plain)
1
2
3
4
5
6
7
8
9
// run-rustfix

pub struct A { pub foo: isize }

fn a() -> A { panic!() }

fn main() {
    let A { .., } = a(); //~ ERROR: expected `}`
}