misleading "add dyn
keyword before derive macro" suggestion
#106071
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.
Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=340b1d1f9850c0644977b8c47b00dc77
The current output is:
Ideally the output should not suggest placing
dyn
beforeClone
in#[derive(Clone)]
because thedyn
keyword is not valid in that position.Thank you to @conradludgate for finding the minimum reproducible that I used for this issue.
The text was updated successfully, but these errors were encountered: