about summary refs log tree commit diff
path: root/tests/ui/pattern/usefulness/integer-ranges/issue-117648-overlapping_range_endpoints-false-positive.rs
blob: 7c9ea341ddb2054d8ee7731100fa512f2356e046 (plain)
1
2
3
4
5
6
7
8
9
//@ check-pass
fn main() {
    match (0i8, 0i8) {
        (0, _) => {}
        (..=-1, ..=0) => {}
        (1.., 0..) => {}
        (1.., ..=-1) | (..=-1, 1..) => {}
    }
}