]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
0bf4aa26 | 2 | #![feature(box_patterns)] |
0531ce1d XL |
3 | |
4 | const VALUE: usize = 21; | |
5 | ||
6 | pub fn main() { | |
7 | match &18 { | |
8 | &(18..=18) => {} | |
9 | _ => { unreachable!(); } | |
10 | } | |
11 | match &21 { | |
12 | &(VALUE..=VALUE) => {} | |
13 | _ => { unreachable!(); } | |
14 | } | |
15 | match Box::new(18) { | |
16 | box (18..=18) => {} | |
17 | _ => { unreachable!(); } | |
18 | } | |
19 | match Box::new(21) { | |
20 | box (VALUE..=VALUE) => {} | |
21 | _ => { unreachable!(); } | |
22 | } | |
54a0048b | 23 | } |