summaryrefslogtreecommitdiffstats
path: root/tests/ui/range/range-pattern-out-of-bounds-issue-68972.rs
blob: d02caff1febd2289e98237bd3fdeebd80b241d6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![feature(exclusive_range_pattern)]
#![allow(unreachable_patterns)]
fn main() {
    match 0u8 {
        251..257 => {}
        //~^ ERROR literal out of range
        //~| ERROR literal out of range
        251..=256 => {}
        //~^ ERROR literal out of range
        //~| ERROR literal out of range
        _ => {}
    }
}