about summary refs log tree commit diff
path: root/tests/ui/macros/bad_hello.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/macros/bad_hello.rs')
-rw-r--r--tests/ui/macros/bad_hello.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/macros/bad_hello.rs b/tests/ui/macros/bad_hello.rs
new file mode 100644
index 00000000000..aaa9e243a2d
--- /dev/null
+++ b/tests/ui/macros/bad_hello.rs
@@ -0,0 +1,6 @@
+fn main() {
+    println!(3 + 4);
+    //~^ ERROR format argument must be a string literal
+    println!(3, 4);
+    //~^ ERROR format argument must be a string literal
+}