summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-61475.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-61475.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-61475.rs b/src/test/ui/issues/issue-61475.rs
new file mode 100644
index 000000000..680449c9e
--- /dev/null
+++ b/src/test/ui/issues/issue-61475.rs
@@ -0,0 +1,15 @@
+// run-pass
+#![allow(dead_code)]
+
+enum E {
+ A, B
+}
+
+fn main() {
+ match &&E::A {
+ &&E::A => {
+ }
+ &&E::B => {
+ }
+ };
+}