]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-75599.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / 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 }