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