Wrong suggestion of using + static
instead of <'static>
for unions
#71196
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.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Someone had this problem on discord, so creating an issue:
Rust suggests you to:
instead it should suggest to use
Test<'static>
and not<Test + 'static>
playground link
The text was updated successfully, but these errors were encountered: