Compiler suggests #[derive(Clone, Eq + Clone)] #79076
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
A-trait-system
Area: Trait system
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.
Let's say I want my struct to be comparable with anything that can be converted into the struct itself, but the actual comparison requires
Clone
:(Playground)
Errors:
The text was updated successfully, but these errors were encountered: