about summary refs log tree commit diff
path: root/src/test/run-pass
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass')
-rw-r--r--src/test/run-pass/macro-pat.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/run-pass/macro-pat.rs b/src/test/run-pass/macro-pat.rs
index 48e521de57e..8de3996245f 100644
--- a/src/test/run-pass/macro-pat.rs
+++ b/src/test/run-pass/macro-pat.rs
@@ -71,4 +71,6 @@ pub fn main() {
         let ident_pat!(x) = 2;
         x+1
     });
+
+    let ident_pat!(_) = 2; // OK
 }