summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-75599.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issues/issue-75599.rs')
-rw-r--r--tests/ui/parser/issues/issue-75599.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-75599.rs b/tests/ui/parser/issues/issue-75599.rs
new file mode 100644
index 000000000..0857676e4
--- /dev/null
+++ b/tests/ui/parser/issues/issue-75599.rs
@@ -0,0 +1,24 @@
+// check-pass
+#![allow(non_upper_case_globals)]
+
+const or: usize = 1;
+const and: usize = 2;
+
+mod or {
+ pub const X: usize = 3;
+}
+
+mod and {
+ pub const X: usize = 4;
+}
+
+fn main() {
+ match 0 {
+ 0 => {}
+ or => {}
+ and => {}
+ or::X => {}
+ and::X => {}
+ _ => {}
+ }
+}