When encountering an incorrect trait bound referencing the current trait, suggest correct code #65985
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
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.
The following snippet is not correct:
But these three are:
For the first we currently emit:
but it should suggest one of the two valid snippets above.
The text was updated successfully, but these errors were encountered: