mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
10 lines
293 B
Text
10 lines
293 B
Text
error: It is more idiomatic to use `v1.iter().enumerate()`
|
|
--> $DIR/range.rs:5:14
|
|
|
|
|
LL | let _x = v1.iter().zip(0..v1.len());
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::range-zip-with-len` implied by `-D warnings`
|
|
|
|
error: aborting due to previous error
|
|
|