Unhelpful error when array elements aren't separated by commas #92089
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The lexing & parsing of Rust source code to an AST
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code (playground):
The current output is:
Ideally the output should look like:
and the compiler would preview the fix, by adding the commas in green.
The text was updated successfully, but these errors were encountered: