rust/tests/ui/typeck/issue-69378-ice-on-invalid-...

10 lines
185 B
Rust

// 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() {}