mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
19 lines
428 B
Rust
19 lines
428 B
Rust
fn main() {
|
|
match 5 {
|
|
6 ..= 1 => { }
|
|
//~^ ERROR lower range bound must be less than or equal to upper
|
|
_ => { }
|
|
};
|
|
|
|
match 5 {
|
|
0 .. 0 => { }
|
|
//~^ ERROR lower range bound must be less than upper
|
|
_ => { }
|
|
};
|
|
|
|
match 5u64 {
|
|
0xFFFF_FFFF_FFFF_FFFF ..= 1 => { }
|
|
//~^ ERROR lower range bound must be less than or equal to upper
|
|
_ => { }
|
|
};
|
|
}
|