summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/macros-no-semicolon.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/parser/macros-no-semicolon.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/parser/macros-no-semicolon.rs b/src/test/ui/parser/macros-no-semicolon.rs
new file mode 100644
index 000000000..24d1ae9e6
--- /dev/null
+++ b/src/test/ui/parser/macros-no-semicolon.rs
@@ -0,0 +1,5 @@
+fn main() {
+ assert_eq!(1, 2) //~ ERROR: expected `;`
+ assert_eq!(3, 4) //~ ERROR: expected `;`
+ println!("hello");
+}