]> git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/issues/issue-75599.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / parser / issues / issue-75599.rs
1 // check-pass
2 #![allow(non_upper_case_globals)]
3
4 const or: usize = 1;
5 const and: usize = 2;
6
7 mod or {
8 pub const X: usize = 3;
9 }
10
11 mod and {
12 pub const X: usize = 4;
13 }
14
15 fn main() {
16 match 0 {
17 0 => {}
18 or => {}
19 and => {}
20 or::X => {}
21 and::X => {}
22 _ => {}
23 }
24 }