]> git.proxmox.com Git - rustc.git/blame - src/test/run-pass/binding/range-inclusive-pattern-precedence.rs
New upstream version 1.37.0+dfsg1
[rustc.git] / src / test / run-pass / binding / range-inclusive-pattern-precedence.rs
CommitLineData
b7449926 1// run-pass
0bf4aa26 2#![feature(box_patterns)]
0531ce1d
XL
3
4const VALUE: usize = 21;
5
6pub 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}