suggests with whole macro call

This commit is contained in:
csmoe 2018-07-04 11:48:56 +08:00
parent c999b253b7
commit 88f475c808
2 changed files with 8 additions and 11 deletions

View file

@ -2,7 +2,13 @@ error: expected a literal
--> $DIR/bad_hello.rs:12:14
|
LL | println!(3 + 4); //~ ERROR expected a literal
| ^^^^^ help: consider changing this to: `"{}", 3 + 4`
| ^^^^^
|
help: you might be missing a string literal to format with
--> $DIR/bad_hello.rs:12:14
|
LL | println!(3 + 4); //~ ERROR expected a literal
| ^^^^^
error: aborting due to previous error