rust/src/test/ui/match/match-range-fail-2.stderr

23 lines
707 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0030]: lower range bound must be less than or equal to upper
2018-12-25 09:56:47 -06:00
--> $DIR/match-range-fail-2.rs:5:9
2018-08-08 07:28:26 -05:00
|
LL | 6 ..= 1 => { }
| ^ lower bound larger than upper bound
error[E0579]: lower range bound must be less than upper
2018-12-25 09:56:47 -06:00
--> $DIR/match-range-fail-2.rs:11:9
2018-08-08 07:28:26 -05:00
|
LL | 0 .. 0 => { }
| ^
error[E0030]: lower range bound must be less than or equal to upper
2018-12-25 09:56:47 -06:00
--> $DIR/match-range-fail-2.rs:17:9
2018-08-08 07:28:26 -05:00
|
LL | 0xFFFF_FFFF_FFFF_FFFF ..= 1 => { }
| ^^^^^^^^^^^^^^^^^^^^^ lower bound larger than upper bound
error: aborting due to 3 previous errors
Some errors occurred: E0030, E0579.
For more information about an error, try `rustc --explain E0030`.