summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/println_empty_string.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/println_empty_string.stderr')
-rw-r--r--src/tools/clippy/tests/ui/println_empty_string.stderr28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/println_empty_string.stderr b/src/tools/clippy/tests/ui/println_empty_string.stderr
new file mode 100644
index 000000000..17fe4ea74
--- /dev/null
+++ b/src/tools/clippy/tests/ui/println_empty_string.stderr
@@ -0,0 +1,28 @@
+error: using `println!("")`
+ --> $DIR/println_empty_string.rs:6:5
+ |
+LL | println!("");
+ | ^^^^^^^^^^^^ help: replace it with: `println!()`
+ |
+ = note: `-D clippy::println-empty-string` implied by `-D warnings`
+
+error: using `println!("")`
+ --> $DIR/println_empty_string.rs:9:14
+ |
+LL | _ => println!(""),
+ | ^^^^^^^^^^^^ help: replace it with: `println!()`
+
+error: using `eprintln!("")`
+ --> $DIR/println_empty_string.rs:13:5
+ |
+LL | eprintln!("");
+ | ^^^^^^^^^^^^^ help: replace it with: `eprintln!()`
+
+error: using `eprintln!("")`
+ --> $DIR/println_empty_string.rs:16:14
+ |
+LL | _ => eprintln!(""),
+ | ^^^^^^^^^^^^^ help: replace it with: `eprintln!()`
+
+error: aborting due to 4 previous errors
+