rust-clippy/tests/ui/reversed_empty_ranges_loops_unfixable.rs

13 lines
215 B
Rust
Raw Normal View History

#![warn(clippy::reversed_empty_ranges)]
#![allow(clippy::uninlined_format_args)]
fn main() {
for i in 5..5 {
println!("{}", i);
}
for i in (5 + 2)..(8 - 1) {
println!("{}", i);
}
}