summaryrefslogtreecommitdiffstats
path: root/tests/ui/range/exclusive-range-patterns-2021.rs
blob: de69c9bf2f384f8d0977d350318fc96cca2f72a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// edition:2021

fn main() {
    let n = 2;
    match n {
        0...3 => {}
        //~^ ERROR `...` range patterns are deprecated
        4...10 => {}
        //~^ ERROR `...` range patterns are deprecated
        (11...100) => {}
        //~^ ERROR `...` range patterns are deprecated
        _ => {}
    }
}