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