summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-10392-2.fixed
blob: 3386fac17dfd7c71a08e761fb161586365cc2089 (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 `}`
}