False positive explicit_into_iter_loop on an into_iter method with type parameter #6900
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
As of most recent nightly:
Clippy wants to see this rewritten as:
However, that replacement code does not compile. Therefore I believe the
clippy::explicit_into_iter_loop
lint should be fixed to not trigger on this code.Meta
cargo clippy -V
: e.g. clippy 0.1.52 (acca818 2021-03-13)rustc -Vv
:The text was updated successfully, but these errors were encountered: