summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-21475.rs
blob: b028fcae0775bca8a33ef8459995b3ffe09e2f20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// run-pass
#![allow(unused_imports, overlapping_range_endpoints)]
// pretty-expanded FIXME #23616

use m::{START, END};

fn main() {
    match 42 {
        m::START..=m::END => {},
        0..=m::END => {},
        m::START..=59 => {},
        _  => {},
    }
}

mod m {
  pub const START: u32 = 4;
  pub const END:   u32 = 14;
}