error: use of deprecated item: replaced by `Iterator::step_by` --> range.rs:14:12 | 14 | (0..1).step_by(0); | ^^^^^^^ | = note: `-D deprecated` implied by `-D warnings` error: use of deprecated item: replaced by `Iterator::step_by` --> range.rs:16:12 | 16 | (0..1).step_by(1); | ^^^^^^^ | = note: `-D deprecated` implied by `-D warnings` error: use of deprecated item: replaced by `Iterator::step_by` --> range.rs:18:11 | 18 | (1..).step_by(0); | ^^^^^^^ | = note: `-D deprecated` implied by `-D warnings` error: use of deprecated item: replaced by `Iterator::step_by` --> range.rs:19:13 | 19 | (1...2).step_by(0); | ^^^^^^^ | = note: `-D deprecated` implied by `-D warnings` error: use of deprecated item: replaced by `Iterator::step_by` --> range.rs:22:7 | 22 | x.step_by(0); | ^^^^^^^ | = note: `-D deprecated` implied by `-D warnings` error: It is more idiomatic to use v1.iter().enumerate() --> range.rs:30:14 | 30 | let _x = v1.iter().zip(0..v1.len()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D range-zip-with-len` implied by `-D warnings` error: Iterator::step_by(0) will panic at runtime --> range.rs:34:13 | 34 | let _ = v1.iter().step_by(2/3); | ^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D iterator-step-by-zero` implied by `-D warnings` error: aborting due to previous error(s) error: Could not compile `clippy_tests`. To learn more, run the command again with --verbose.