Account for {}
when array literal []
was meant
#95289
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When incorrectly using
{}
for an array literal when[]
should have been used with a single element, we should provide a structured suggestion as we already do when encountering multiple literals.The text was updated successfully, but these errors were encountered: