about summary refs log tree commit diff
path: root/tests/ui/resolve/auxiliary/fake_matches.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/resolve/auxiliary/fake_matches.rs')
-rw-r--r--tests/ui/resolve/auxiliary/fake_matches.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/resolve/auxiliary/fake_matches.rs b/tests/ui/resolve/auxiliary/fake_matches.rs
new file mode 100644
index 00000000000..6d42972cbac
--- /dev/null
+++ b/tests/ui/resolve/auxiliary/fake_matches.rs
@@ -0,0 +1,13 @@
+// Helper for test tests/ui/resolve/const-with-typo-in-pattern-binding-ice-135289.rs
+
+//@ edition: 2018
+
+#[macro_export]
+macro_rules! assert_matches {
+    ( $e:expr , $($pat:pat)|+ ) => {
+        match $e {
+            $($pat)|+ => (),
+            _ => (),
+        }
+    };
+}