1 error: Range::step_by(0) produces an infinite iterator. Consider using `std::iter::repeat()` instead
4 13 | (0..1).step_by(0);
7 = note: `-D range-step-by-zero` implied by `-D warnings`
9 error: Range::step_by(0) produces an infinite iterator. Consider using `std::iter::repeat()` instead
12 17 | (1..).step_by(0);
15 = note: `-D range-step-by-zero` implied by `-D warnings`
17 error: Range::step_by(0) produces an infinite iterator. Consider using `std::iter::repeat()` instead
20 18 | (1...2).step_by(0);
23 = note: `-D range-step-by-zero` implied by `-D warnings`
25 error: Range::step_by(0) produces an infinite iterator. Consider using `std::iter::repeat()` instead
31 = note: `-D range-step-by-zero` implied by `-D warnings`
33 error: It is more idiomatic to use v1.iter().enumerate()
36 29 | let _x = v1.iter().zip(0..v1.len());
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
39 = note: `-D range-zip-with-len` implied by `-D warnings`
41 error: aborting due to 5 previous errors
43 error: Could not compile `clippy_tests`.
45 To learn more, run the command again with --verbose.