summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issue-94866.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/issue-94866.rs')
-rw-r--r--src/test/ui/issue-94866.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/issue-94866.rs b/src/test/ui/issue-94866.rs
new file mode 100644
index 000000000..c42034879
--- /dev/null
+++ b/src/test/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!()
+ }
+}