mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
8 lines
187 B
Rust
8 lines
187 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 });
|
|
}
|