]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-69378-ice-on-invalid-type-node-after-recovery.rs
Merge commit 'c19edfd71a1d0ddef86c2c67fdb40718d40a72b4' into sync_cg_clif-2022-07-25
[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() {}