suggests with whole macro call
This commit is contained in:
parent
c999b253b7
commit
88f475c808
2 changed files with 8 additions and 11 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue