about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndy Caldwell <andrew.caldwell@metaswitch.com>2015-07-24 01:09:52 +0000
committerAndy Caldwell <andrew.caldwell@metaswitch.com>2015-07-24 01:09:52 +0000
commit610d1e312f4d8ec13755015c69d5ae410039b06a (patch)
tree0d6b410a633771c90bb64bd6cbd1c7d7b20d7115
parent90904204d6218ecb4bdfb36015759ade77b10f4b (diff)
downloadrust-610d1e312f4d8ec13755015c69d5ae410039b06a.tar.gz
rust-610d1e312f4d8ec13755015c69d5ae410039b06a.zip
Add test for issue #23389
-rw-r--r--src/test/compile-fail/invalid-macro-matcher.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/compile-fail/invalid-macro-matcher.rs b/src/test/compile-fail/invalid-macro-matcher.rs
new file mode 100644
index 00000000000..568bac1d89d
--- /dev/null
+++ b/src/test/compile-fail/invalid-macro-matcher.rs
@@ -0,0 +1,6 @@
+macro_rules! invalid { //~ ERROR Invalid macro matcher
+    _ => ();
+}
+
+fn main() {
+}