summaryrefslogtreecommitdiffstats
path: root/tests/ui/match/match-on-negative-integer-ranges.rs
blob: 53e9ea9a5775b6efb0b300fcf8a83bdc8174b24c (plain)
1
2
3
4
5
6
7
// 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 });
}