Suggestion for print
This commit is contained in:
parent
8fa9bfeb15
commit
b79a83b4e4
2 changed files with 9 additions and 2 deletions
|
|
@ -2,7 +2,7 @@ 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`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue