diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2018-07-11 12:38:32 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-11 12:38:32 -0600 |
| commit | d2a8a2b34a26b73dfd9e0179d67cff7c8f8ef07d (patch) | |
| tree | fb9d70714923cbcc766b106e20be55bd20da15bf /src/test | |
| parent | d573fe17786b9c2f5a766498d411d54eee5fa19f (diff) | |
| parent | 790c09e8495d74e31073da0a88f1eacdb4a77dee (diff) | |
| download | rust-d2a8a2b34a26b73dfd9e0179d67cff7c8f8ef07d.tar.gz rust-d2a8a2b34a26b73dfd9e0179d67cff7c8f8ef07d.zip | |
Rollup merge of #51614 - csmoe:lit_sugg, r=estebank
Correct suggestion for println Closes https://github.com/rust-lang/rust/issues/51585 r? @estebank
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/macros/bad_hello.stderr | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/macros/bad_hello.stderr b/src/test/ui/macros/bad_hello.stderr index 578ff4ab9d4..0bfb060f844 100644 --- a/src/test/ui/macros/bad_hello.stderr +++ b/src/test/ui/macros/bad_hello.stderr @@ -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 |
