RS.CLIPPY.ITERATOR_STEP_BY_ZERO
Using `Iterator::step_by(0)`, which will panic at runtime
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: iterator_step_by_zero. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks for calling .step_by(0) on iterators which panics.
Why is this bad?
This very much looks like an oversight. Use panic!() instead if you
actually intend to panic.
Example
for x in (0..100).step_by(0) {
//..
}