blob: a3e26a41232c7b382d9545dc33a92949c73ed539 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// run-pass
#![allow(overlapping_range_endpoints)]
fn main() {
let x = 'a';
let y = match x {
'a'..='b' if false => "one",
'a' => "two",
'a'..='b' => "three",
_ => panic!("what?"),
};
assert_eq!(y, "two");
}
|