mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 16:15:03 +00:00
25 lines
558 B
Plaintext
25 lines
558 B
Plaintext
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
|
|
|