From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/macros/bad_hello.stderr | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/ui/macros/bad_hello.stderr (limited to 'tests/ui/macros/bad_hello.stderr') diff --git a/tests/ui/macros/bad_hello.stderr b/tests/ui/macros/bad_hello.stderr new file mode 100644 index 000000000..fc9bb82b7 --- /dev/null +++ b/tests/ui/macros/bad_hello.stderr @@ -0,0 +1,24 @@ +error: format argument must be a string literal + --> $DIR/bad_hello.rs:2:14 + | +LL | println!(3 + 4); + | ^^^^^ + | +help: you might be missing a string literal to format with + | +LL | println!("{}", 3 + 4); + | +++++ + +error: format argument must be a string literal + --> $DIR/bad_hello.rs:4:14 + | +LL | println!(3, 4); + | ^ + | +help: you might be missing a string literal to format with + | +LL | println!("{} {}", 3, 4); + | ++++++++ + +error: aborting due to 2 previous errors + -- cgit v1.2.3