mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 00:56:14 +00:00
18 lines
556 B
Plaintext
18 lines
556 B
Plaintext
error: this range is empty so it will yield no values
|
|
--> $DIR/reversed_empty_ranges_loops_unfixable.rs:5:14
|
|
|
|
|
LL | for i in 5..5 {
|
|
| ^^^^
|
|
|
|
|
= note: `-D clippy::reversed-empty-ranges` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::reversed_empty_ranges)]`
|
|
|
|
error: this range is empty so it will yield no values
|
|
--> $DIR/reversed_empty_ranges_loops_unfixable.rs:11:14
|
|
|
|
|
LL | for i in (5 + 2)..(8 - 1) {
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|