]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-69378-ice-on-invalid-type-node-after-recovery.rs
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[rust.git] / src / test / ui / typeck / issue-69378-ice-on-invalid-type-node-after-recovery.rs
1 // Regression test for #69378: no type for node after struct parse recovery
2
3 struct Foo { 0: u8 } //~ ERROR expected identifier
4
5 fn test(f: Foo) {
6     Foo{foo: 4, ..f};
7 }
8
9 fn main() {}