summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/issue-88074-pat-range-type-inference.rs
blob: 27db7d8c7ab9dbfa0d66d50fd871ebe7969e39af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// check-pass

trait Zero {
    const ZERO: Self;
}

impl Zero for i32 {
    const ZERO: Self = 0;
}

fn main() {
    match 1 {
        Zero::ZERO ..= 1 => {},
        _ => {},
    }
}