same_item_push being suggested for values that are not Copy or Clone #5979
Labels
C-bug
Category: Clippy is not doing the correct thing
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
good-first-issue
These issues are a good way to get started with Clippy
L-suggestion
Lint: Improving, adding or fixing lint suggestions
Similar to #5902 but instead of a mutated value, it's suggesting it for a value that is not
Copy
norClone
.Silly example:
This gives the warning:
Note the suggested replacements don't even compile.
Meta
cargo clippy -V
: clippy 0.0.212 (397b390 2020-08-27)rustc -Vv
:The text was updated successfully, but these errors were encountered: