rust/tests/ui/match/match-on-negative-integer-ranges.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
186 B
Rust
Raw Normal View History

2019-02-01 20:02:21 +00:00
// 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 });
}