]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-26251.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-26251.rs
1 // run-pass
2 #![allow(overlapping_patterns)]
3
4 fn main() {
5 let x = 'a';
6
7 let y = match x {
8 'a'..='b' if false => "one",
9 'a' => "two",
10 'a'..='b' => "three",
11 _ => panic!("what?"),
12 };
13
14 assert_eq!(y, "two");
15 }