]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/issue-26251.rs
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / ui / match / issue-26251.rs
1 // run-pass
2 #![allow(overlapping_range_endpoints)]
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 }