summaryrefslogtreecommitdiffstats
path: root/tests/ui/issue-94866.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issue-94866.rs')
-rw-r--r--tests/ui/issue-94866.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/issue-94866.rs b/tests/ui/issue-94866.rs
new file mode 100644
index 000000000..c42034879
--- /dev/null
+++ b/tests/ui/issue-94866.rs
@@ -0,0 +1,14 @@
+macro_rules! m {
+ () => {
+ {}
+ };
+}
+
+enum Enum { A, B }
+
+fn main() {
+ match Enum::A {
+ //~^ ERROR non-exhaustive patterns
+ Enum::A => m!()
+ }
+}