We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 815765d commit a99767fCopy full SHA for a99767f
src/libsyntax/parse/parser.rs
@@ -2450,6 +2450,9 @@ impl<'a> Parser<'a> {
2450
e.span_label(struct_sp, "while parsing this struct");
2451
e.emit();
2452
2453
+ // If the next token is a comma, then try to parse
2454
+ // what comes next as additional fields, rather than
2455
+ // bailing out until next `}`.
2456
if self.token != token::Comma {
2457
self.recover_stmt();
2458
break;
0 commit comments