rust-clippy/tests/ui/reversed_empty_ranges_loops_unfixable.rs

12 lines
174 B
Rust
Raw Normal View History

2020-05-11 21:48:48 +00:00
#![warn(clippy::reversed_empty_ranges)]
fn main() {
for i in 5..5 {
println!("{}", i);
}
for i in (5 + 2)..(8 - 1) {
println!("{}", i);
}
}