rust/tests/ui/pattern/usefulness/integer-ranges/issue-117648-overlapping_range_endpoints-false-positive.rs
2024-02-16 20:02:50 +00:00

10 lines
174 B
Rust

//@ check-pass
fn main() {
match (0i8, 0i8) {
(0, _) => {}
(..=-1, ..=0) => {}
(1.., 0..) => {}
(1.., ..=-1) | (..=-1, 1..) => {}
}
}