summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/rfc-3086-metavar-expr/issue-111904.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/macros/rfc-3086-metavar-expr/issue-111904.rs')
-rw-r--r--tests/ui/macros/rfc-3086-metavar-expr/issue-111904.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/macros/rfc-3086-metavar-expr/issue-111904.rs b/tests/ui/macros/rfc-3086-metavar-expr/issue-111904.rs
new file mode 100644
index 000000000..9cc572c23
--- /dev/null
+++ b/tests/ui/macros/rfc-3086-metavar-expr/issue-111904.rs
@@ -0,0 +1,14 @@
+#![feature(macro_metavar_expr)]
+
+macro_rules! foo {
+ ( $( $($t:ident),* );* ) => { ${count(t,)} }
+ //~^ ERROR `count` followed by a comma must have an associated
+ //~| ERROR expected expression, found `$`
+}
+
+fn test() {
+ foo!(a, a; b, b);
+}
+
+fn main() {
+}