Rollup merge of #51614 - csmoe:lit_sugg, r=estebank
Correct suggestion for println Closes https://github.com/rust-lang/rust/issues/51585 r? @estebank
This commit is contained in:
commit
d2a8a2b34a
2 changed files with 38 additions and 29 deletions
|
|
@ -3,6 +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
|
||||
|
|
||||
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