mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-22 19:13:29 +00:00
17 lines
472 B
Text
17 lines
472 B
Text
|
error: this range is empty so it will yield no values
|
||
|
--> $DIR/reversed_empty_ranges_loops_unfixable.rs:4:14
|
||
|
|
|
||
|
LL | for i in 5..5 {
|
||
|
| ^^^^
|
||
|
|
|
||
|
= note: `-D clippy::reversed-empty-ranges` implied by `-D warnings`
|
||
|
|
||
|
error: this range is empty so it will yield no values
|
||
|
--> $DIR/reversed_empty_ranges_loops_unfixable.rs:8:14
|
||
|
|
|
||
|
LL | for i in (5 + 2)..(8 - 1) {
|
||
|
| ^^^^^^^^^^^^^^^^
|
||
|
|
||
|
error: aborting due to 2 previous errors
|
||
|
|