2023-02-26 01:18:08 +00:00
|
|
|
error: you seem to use `.enumerate()` and immediately discard the index
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/unused_enumerate_index.rs:8:19
|
2023-02-26 01:18:08 +00:00
|
|
|
|
|
|
|
|
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() {
|
|
|
|
| ~ ~~~~~~~~
|
|
|
|
|
2023-10-12 17:05:22 +00:00
|
|
|
error: you seem to use `.enumerate()` and immediately discard the index
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/unused_enumerate_index.rs:55:19
|
2023-10-12 17:05:22 +00:00
|
|
|
|
|
|
|
|
LL | for (_, x) in dummy.enumerate() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: remove the `.enumerate()` call
|
|
|
|
|
|
|
|
|
LL | for x in dummy {
|
|
|
|
| ~ ~~~~~
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2023-02-26 01:18:08 +00:00
|
|
|
|