Suggestion diagnostic for new generic argument is placed at beginning of file #74264
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-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The suggestion to change
&str
to&'a str
and giveZstAssert
a<'a>
generic argument places the<'a>
at the beginning of the file. If you add any items before the trait decl, the suggestion will be before those unrelated items.(Playground)
Errors:
The text was updated successfully, but these errors were encountered: