2020-05-17 10:36:26 -05:00
|
|
|
error: this range is empty so it will yield no values
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/reversed_empty_ranges_loops_unfixable.rs:5:14
|
2020-05-17 10:36:26 -05:00
|
|
|
|
|
|
|
|
LL | for i in 5..5 {
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::reversed-empty-ranges` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::reversed_empty_ranges)]`
|
2020-05-17 10:36:26 -05:00
|
|
|
|
|
|
|
error: this range is empty so it will yield no values
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/reversed_empty_ranges_loops_unfixable.rs:11:14
|
2020-05-17 10:36:26 -05:00
|
|
|
|
|
|
|
|
LL | for i in (5 + 2)..(8 - 1) {
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|