no_effect_underscore_binding
fires when ignoring a generic argument
#8300
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
Summary
When accepting a
T: IntoIterator
argument,no_effect_underscore_binding
requires.into_iter()
be called on the argument when assigning to an_
prefixed variable.Lint Name
no_effect_underscore_binding
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen: no warnings
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=3ffd5b85bf0c41df91d23f7eb9e1eea9
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: