Format interprets closing brace as fill and suggesting to add another closing brace for no apperant reason. #112732
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.
Code
Current output
Desired output
The error should mention that the closing curly brace `}` is interpreted as the fill character and suggest the removal of the colon to fix the issue.
Rationale and extra context
The format spec allows fill to be any character including
}
, this may be confusing.Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: