Skip to content

Commit febf728

Browse files
Add regression test
1 parent c8401a5 commit febf728

2 files changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: expected identifier, found `0`
2+
--> $DIR/issue-69378-ice-on-invalid-type-node-after-recovery.rs:3:14
3+
|
4+
LL | struct Foo { 0: u8 }
5+
| ^ expected identifier
6+
7+
error: aborting due to previous error
8+

0 commit comments

Comments
 (0)