diff options
| author | David Koloski <dkoloski@google.com> | 2022-09-21 13:02:37 -0400 |
|---|---|---|
| committer | David Koloski <dkoloski@google.com> | 2022-09-21 13:13:27 -0400 |
| commit | 4d015293d1cb7ebdd0972e620c3e0f1763ad2ec8 (patch) | |
| tree | e7ff35c233cbd27cdba9e66a233797c5ab2f0cd7 /tests/ui/println_empty_string.stderr | |
| parent | 0dc24ca37640f748d0deac392cb784dd6359b96c (diff) | |
Merge commit '7248d06384c6a90de58c04c1f46be88821278d8b' into sync-from-clippy
Diffstat (limited to 'tests/ui/println_empty_string.stderr')
| -rw-r--r-- | tests/ui/println_empty_string.stderr | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/tests/ui/println_empty_string.stderr b/tests/ui/println_empty_string.stderr index 17fe4ea7479..3cc8bb947bd 100644 --- a/tests/ui/println_empty_string.stderr +++ b/tests/ui/println_empty_string.stderr @@ -1,28 +1,36 @@ -error: using `println!("")` +error: empty string literal in `println!` --> $DIR/println_empty_string.rs:6:5 | LL | println!(""); - | ^^^^^^^^^^^^ help: replace it with: `println!()` + | ^^^^^^^^^--^ + | | + | help: remove the empty string | = note: `-D clippy::println-empty-string` implied by `-D warnings` -error: using `println!("")` +error: empty string literal in `println!` --> $DIR/println_empty_string.rs:9:14 | LL | _ => println!(""), - | ^^^^^^^^^^^^ help: replace it with: `println!()` + | ^^^^^^^^^--^ + | | + | help: remove the empty string -error: using `eprintln!("")` +error: empty string literal in `eprintln!` --> $DIR/println_empty_string.rs:13:5 | LL | eprintln!(""); - | ^^^^^^^^^^^^^ help: replace it with: `eprintln!()` + | ^^^^^^^^^^--^ + | | + | help: remove the empty string -error: using `eprintln!("")` +error: empty string literal in `eprintln!` --> $DIR/println_empty_string.rs:16:14 | LL | _ => eprintln!(""), - | ^^^^^^^^^^^^^ help: replace it with: `eprintln!()` + | ^^^^^^^^^^--^ + | | + | help: remove the empty string error: aborting due to 4 previous errors |
