summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/macro-mismatched-delim-brace-paren.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/parser/macro-mismatched-delim-brace-paren.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/parser/macro-mismatched-delim-brace-paren.rs b/src/test/ui/parser/macro-mismatched-delim-brace-paren.rs
new file mode 100644
index 000000000..404aa7b80
--- /dev/null
+++ b/src/test/ui/parser/macro-mismatched-delim-brace-paren.rs
@@ -0,0 +1,7 @@
+macro_rules! foo { ($($tt:tt)*) => () }
+
+fn main() {
+ foo! {
+ bar, "baz", 1, 2.0
+ ) //~ ERROR mismatched closing delimiter
+}