False-positive map_clone #6299
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
I tried this code:
playground
I expected to see this happen: a doable suggestion.
Instead, this happened: the suggestion isn't possible to satisfy: the
cloned()
method on an iterator of mutable references can't produce a collection of cloned/owned objects:playground
Because:
Meta
cargo clippy -V
: clippy 0.0.212 (18bf6b4 2020-10-07)rustc -Vv
:The text was updated successfully, but these errors were encountered: