about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/println_empty_string.fixed1
-rw-r--r--tests/ui/println_empty_string.rs1
-rw-r--r--tests/ui/println_empty_string.stderr4
3 files changed, 4 insertions, 2 deletions
diff --git a/tests/ui/println_empty_string.fixed b/tests/ui/println_empty_string.fixed
index 4e84511d7b0..2b889b62ea9 100644
--- a/tests/ui/println_empty_string.fixed
+++ b/tests/ui/println_empty_string.fixed
@@ -1,4 +1,5 @@
 // run-rustfix
+#![allow(clippy::match_single_binding)]
 
 fn main() {
     println!();
diff --git a/tests/ui/println_empty_string.rs b/tests/ui/println_empty_string.rs
index 9fdfb03a366..890f5f68476 100644
--- a/tests/ui/println_empty_string.rs
+++ b/tests/ui/println_empty_string.rs
@@ -1,4 +1,5 @@
 // run-rustfix
+#![allow(clippy::match_single_binding)]
 
 fn main() {
     println!();
diff --git a/tests/ui/println_empty_string.stderr b/tests/ui/println_empty_string.stderr
index 689624a0fa0..23112b88168 100644
--- a/tests/ui/println_empty_string.stderr
+++ b/tests/ui/println_empty_string.stderr
@@ -1,5 +1,5 @@
 error: using `println!("")`
-  --> $DIR/println_empty_string.rs:5:5
+  --> $DIR/println_empty_string.rs:6:5
    |
 LL |     println!("");
    |     ^^^^^^^^^^^^ help: replace it with: `println!()`
@@ -7,7 +7,7 @@ LL |     println!("");
    = note: `-D clippy::println-empty-string` implied by `-D warnings`
 
 error: using `println!("")`
-  --> $DIR/println_empty_string.rs:8:14
+  --> $DIR/println_empty_string.rs:9:14
    |
 LL |         _ => println!(""),
    |              ^^^^^^^^^^^^ help: replace it with: `println!()`