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