summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/macros-no-semicolon.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/macros-no-semicolon.rs')
-rw-r--r--tests/ui/parser/macros-no-semicolon.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/parser/macros-no-semicolon.rs b/tests/ui/parser/macros-no-semicolon.rs
new file mode 100644
index 000000000..24d1ae9e6
--- /dev/null
+++ b/tests/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");
+}