mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 01:24:03 +00:00
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`.
|