summaryrefslogtreecommitdiffstats
path: root/tests/ui/half-open-range-patterns/half-open-range-pats-inclusive-match-arrow.rs
blob: 30173b1b4be031eb2642eab7234bb7b65e439548 (plain)
1
2
3
4
5
6
7
8
9
fn main() {
    let x = 42;
    match x {
        0..=73 => {},
        74..=> {},
        //~^ ERROR unexpected `>` after inclusive range
        //~| NOTE this is parsed as an inclusive range `..=`
    }
}