]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/bad_hello.stderr
Auto merge of #61741 - Centril:rollup-fgro5kz, r=Centril
[rust.git] / src / test / ui / macros / bad_hello.stderr
1 error: format argument must be a string literal
2   --> $DIR/bad_hello.rs:2:14
3    |
4 LL |     println!(3 + 4);
5    |              ^^^^^
6 help: you might be missing a string literal to format with
7    |
8 LL |     println!("{}", 3 + 4);
9    |              ^^^^^
10
11 error: format argument must be a string literal
12   --> $DIR/bad_hello.rs:4:14
13    |
14 LL |     println!(3, 4);
15    |              ^
16 help: you might be missing a string literal to format with
17    |
18 LL |     println!("{} {}", 3, 4);
19    |              ^^^^^^^^
20
21 error: aborting due to 2 previous errors
22