]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/bad_hello.stderr
Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup
[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    |
7 help: you might be missing a string literal to format with
8    |
9 LL |     println!("{}", 3 + 4);
10    |              +++++
11
12 error: format argument must be a string literal
13   --> $DIR/bad_hello.rs:4:14
14    |
15 LL |     println!(3, 4);
16    |              ^
17    |
18 help: you might be missing a string literal to format with
19    |
20 LL |     println!("{} {}", 3, 4);
21    |              ++++++++
22
23 error: aborting due to 2 previous errors
24