Extraneous comma in trait bound suggestion #72693
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
D-incorrect
Diagnostics: A diagnostic that is giving misleading or incorrect information.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code (Playground):
Produces an invalid suggestion:
on nightly. On stable, the error message looks a bit different but seems to also be suggesting an extra comma.
When trying to reduce this test case I found that in other cases this same lint seems to suggest the right thing (this may be useful as an additional test case):
correct suggestion (nightly):
The text was updated successfully, but these errors were encountered: