summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/println_empty_string.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/println_empty_string.fixed')
-rw-r--r--src/tools/clippy/tests/ui/println_empty_string.fixed18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/println_empty_string.fixed b/src/tools/clippy/tests/ui/println_empty_string.fixed
new file mode 100644
index 000000000..976068092
--- /dev/null
+++ b/src/tools/clippy/tests/ui/println_empty_string.fixed
@@ -0,0 +1,18 @@
+// run-rustfix
+#![allow(clippy::match_single_binding)]
+
+fn main() {
+ println!();
+ println!();
+
+ match "a" {
+ _ => println!(),
+ }
+
+ eprintln!();
+ eprintln!();
+
+ match "a" {
+ _ => eprintln!(),
+ }
+}