summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/issue-69378-ice-on-invalid-type-node-after-recovery.rs
blob: 571692a5374da798c5f31bf4883d2ed303e95cd0 (plain)
1
2
3
4
5
6
7
8
9
// Regression test for #69378: no type for node after struct parse recovery

struct Foo { 0: u8 } //~ ERROR expected identifier

fn test(f: Foo) {
    Foo{foo: 4, ..f};
}

fn main() {}