]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-range-fail-2.rs
Rollup merge of #61389 - Zoxc:arena-cleanup, r=eddyb
[rust.git] / src / test / ui / match / match-range-fail-2.rs
1 #![feature(exclusive_range_pattern)]
2
3 fn main() {
4     match 5 {
5         6 ..= 1 => { }
6         _ => { }
7     };
8     //~^^^ ERROR lower range bound must be less than or equal to upper
9
10     match 5 {
11         0 .. 0 => { }
12         _ => { }
13     };
14     //~^^^ ERROR lower range bound must be less than upper
15
16     match 5u64 {
17         0xFFFF_FFFF_FFFF_FFFF ..= 1 => { }
18         _ => { }
19     };
20     //~^^^ ERROR lower range bound must be less than or equal to upper
21 }