suggest on new snippet

This commit is contained in:
csmoe 2018-07-11 08:50:21 +08:00
parent 88f475c808
commit 790c09e849
2 changed files with 31 additions and 33 deletions

View file

@ -3,12 +3,10 @@ error: expected a literal
|
LL | println!(3 + 4); //~ ERROR expected a literal
| ^^^^^
|
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
| ^^^^^
LL | println!("{}", 3 + 4); //~ ERROR expected a literal
| ^^^^^^^^^^^
error: aborting due to previous error