parse error recovery could be better with missing commas after struct fields #50636
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Test case: (playground link)
Actual result (nightly):
Expected result:
Ideally the parser would guess that there was meant to be a comma at the end of the line. Then:
foo
andbar
fields to the struct to avoid the latter two errors.The text was updated successfully, but these errors were encountered: