rust/tests/ui/range.stderr

11 lines
293 B
Text
Raw Normal View History

2020-01-06 07:36:33 +01:00
error: It is more idiomatic to use `v1.iter().enumerate()`
--> $DIR/range.rs:5:14
|
2018-12-27 16:57:55 +01:00
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
2018-01-16 17:06:27 +01:00