]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-75599.rs
Rollup merge of #79884 - Digital-Chaos:replace-magic, r=m-ou-se
[rust.git] / src / test / ui / parser / 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 }