]> git.lizzy.rs Git - rust.git/blob - tests/ui/match/match-on-negative-integer-ranges.rs
Rollup merge of #106470 - ehuss:tidy-no-wasm, r=Mark-Simulacrum
[rust.git] / tests / ui / match / match-on-negative-integer-ranges.rs
1 // run-pass
2
3 fn main() {
4     assert_eq!(false, match -50_i8 { -128i8..=-101i8 => true, _ => false, });
5
6     assert_eq!(false, if let -128i8..=-101i8 = -50_i8 { true } else { false });
7 }