rust/tests/ui/macros/bad_hello.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
558 B
Plaintext
Raw Normal View History

error: format argument must be a string literal
2018-12-25 15:56:47 +00:00
--> $DIR/bad_hello.rs:2:14
|
LL | println!(3 + 4);
2018-07-04 03:48:56 +00:00
| ^^^^^
|
2018-07-04 03:48:56 +00:00
help: you might be missing a string literal to format with
|
LL | println!("{}", 3 + 4);
| +++++
error: format argument must be a string literal
2018-12-25 15:56:47 +00:00
--> $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