1 error: Range::step_by(0) produces an infinite iterator. Consider using `std::iter::repeat()` instead
2 --> examples/range.rs:13:5
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
10 --> examples/range.rs:17:5
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
18 --> examples/range.rs:18:5
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
26 --> examples/range.rs:21:5
31 = note: `-D range-step-by-zero` implied by `-D warnings`
33 error: It is more idiomatic to use v1.iter().enumerate()
34 --> examples/range.rs:29:14
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.