about summary refs log tree commit diff
path: root/tests/ui/pattern/issue-88074-pat-range-type-inference.rs
blob: ce8087204116c041e45d1c530d55e04330494c6e (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 => {},
        _ => {},
    }
}