summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/bad_hello.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/macros/bad_hello.rs')
-rw-r--r--src/test/ui/macros/bad_hello.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/macros/bad_hello.rs b/src/test/ui/macros/bad_hello.rs
new file mode 100644
index 000000000..aaa9e243a
--- /dev/null
+++ b/src/test/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
+}