summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/missing-semicolon.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/parser/missing-semicolon.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/parser/missing-semicolon.rs b/src/test/ui/parser/missing-semicolon.rs
new file mode 100644
index 000000000..f68d177c0
--- /dev/null
+++ b/src/test/ui/parser/missing-semicolon.rs
@@ -0,0 +1,8 @@
+macro_rules! m {
+ ($($e1:expr),*; $($e2:expr),*) => {
+ $( let x = $e1 )*; //~ ERROR expected one of `.`, `;`, `?`, `else`, or
+ $( println!("{}", $e2) )*;
+ }
+}
+
+fn main() { m!(0, 0; 0, 0); }