Unary plus gives suboptimal parse error #88276
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current output is:
Ideally, if we want to continue rejecting unary plus on number literals, the parser should recover the unexpected unary plus, and the output should look somewhat like:
Tested on 1.56.0-nightly (2021-08-22 af14075)
The text was updated successfully, but these errors were encountered: