]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/println_empty_string.stderr
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / println_empty_string.stderr
index cff3f988052a1dd14a6041510d15c7a7bb5b6c21..3cc8bb947bd352c0e889c2d29d4221f4754eee15 100644 (file)
@@ -1,16 +1,36 @@
-error: using `println!("")`
- --> $DIR/println_empty_string.rs:3:5
-  |
-3 |     println!("");
-  |     ^^^^^^^^^^^^ help: replace it with: `println!()`
-  |
-  = note: `-D println-empty-string` implied by `-D warnings`
+error: empty string literal in `println!`
+  --> $DIR/println_empty_string.rs:6:5
+   |
+LL |     println!("");
+   |     ^^^^^^^^^--^
+   |              |
+   |              help: remove the empty string
+   |
+   = note: `-D clippy::println-empty-string` implied by `-D warnings`
 
-error: using `println!("")`
- --> $DIR/println_empty_string.rs:6:14
-  |
-6 |         _ => println!(""),
-  |              ^^^^^^^^^^^^ help: replace it with: `println!()`
+error: empty string literal in `println!`
+  --> $DIR/println_empty_string.rs:9:14
+   |
+LL |         _ => println!(""),
+   |              ^^^^^^^^^--^
+   |                       |
+   |                       help: remove the empty string
 
-error: aborting due to 2 previous errors
+error: empty string literal in `eprintln!`
+  --> $DIR/println_empty_string.rs:13:5
+   |
+LL |     eprintln!("");
+   |     ^^^^^^^^^^--^
+   |               |
+   |               help: remove the empty string
+
+error: empty string literal in `eprintln!`
+  --> $DIR/println_empty_string.rs:16:14
+   |
+LL |         _ => eprintln!(""),
+   |              ^^^^^^^^^^--^
+   |                        |
+   |                        help: remove the empty string
+
+error: aborting due to 4 previous errors