summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-7970a.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-7970a.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-7970a.rs b/src/test/ui/issues/issue-7970a.rs
new file mode 100644
index 000000000..dae906410
--- /dev/null
+++ b/src/test/ui/issues/issue-7970a.rs
@@ -0,0 +1,8 @@
+macro_rules! one_arg_macro {
+ ($fmt:expr) => (print!(concat!($fmt, "\n")));
+}
+
+fn main() {
+ one_arg_macro!();
+ //~^ ERROR unexpected end of macro invocation
+}