Incorrect compiler suggestion for adding lifetime bounds to derive macros #107694
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
No response
Rationale and extra context
The error on playground.
The compiler suggest incorrect corrections to add lifetimes where they cannot appear. The reproduction of this bug depends on the serde bug serde-rs/serde#2371, which should not be fixed.
Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: