rust/tests/ui/match/match-on-negative-integer-ranges.rs
2023-01-11 09:32:08 +00:00

8 lines
186 B
Rust

// run-pass
fn main() {
assert_eq!(false, match -50_i8 { -128i8..=-101i8 => true, _ => false, });
assert_eq!(false, if let -128i8..=-101i8 = -50_i8 { true } else { false });
}