16 lines
508 B
Plaintext
16 lines
508 B
Plaintext
|
error: you seem to use `.enumerate()` and immediately discard the index
|
||
|
--> $DIR/unused_enumerate_index.rs:7:19
|
||
|
|
|
||
|
LL | for (_, x) in v.iter().enumerate() {
|
||
|
| ^^^^^^^^^^^^^^^^^^^^
|
||
|
|
|
||
|
= note: `-D clippy::unused-enumerate-index` implied by `-D warnings`
|
||
|
= help: to override `-D warnings` add `#[allow(clippy::unused_enumerate_index)]`
|
||
|
help: remove the `.enumerate()` call
|
||
|
|
|
||
|
LL | for x in v.iter() {
|
||
|
| ~ ~~~~~~~~
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|