mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
f8ca417559
For half-open ranges, specifies that the upper bound cannot be the minimum. Also specify that this only applies to range patterns and not also expressions.
10 lines
315 B
Plaintext
10 lines
315 B
Plaintext
error[E0030]: lower bound for range pattern must be less than or equal to upper bound
|
|
--> $DIR/E0030.rs:3:9
|
|
|
|
|
LL | 1000 ..= 5 => {}
|
|
| ^^^^^^^^^^ lower bound larger than upper bound
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0030`.
|