summaryrefslogtreecommitdiffstats
path: root/src/test/ui/half-open-range-patterns/pat-tuple-5.rs
blob: 613d907cfe329266b2e0f0ee56aa348ea2512dc8 (plain)
1
2
3
4
5
6
7
8
9
10
#![feature(half_open_range_patterns)]
#![feature(exclusive_range_pattern)]

fn main() {
    const PAT: u8 = 1;

    match (0, 1) {
        (PAT ..) => {} //~ ERROR mismatched types
    }
}