]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/writeln_empty_string.stderr
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / writeln_empty_string.stderr
index 16a8e0a203d3a3f26cea4c32e025710d79015bc7..25e69ec48e7e28cb413a8f60a1b3b5969aaa3762 100644 (file)
@@ -1,10 +1,20 @@
-error: using `writeln!(v, "")`
- --> $DIR/writeln_empty_string.rs:9:5
-  |
-9 |     writeln!(&mut v, "");
-  |     ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `writeln!(v)`
-  |
-  = note: `-D writeln-empty-string` implied by `-D warnings`
+error: empty string literal in `writeln!`
+  --> $DIR/writeln_empty_string.rs:11:5
+   |
+LL |     writeln!(v, "");
+   |     ^^^^^^^^^^----^
+   |               |
+   |               help: remove the empty string
+   |
+   = note: `-D clippy::writeln-empty-string` implied by `-D warnings`
 
-error: aborting due to previous error
+error: empty string literal in `writeln!`
+  --> $DIR/writeln_empty_string.rs:14:5
+   |
+LL |     writeln!(suggestion, "");
+   |     ^^^^^^^^^^^^^^^^^^^----^
+   |                        |
+   |                        help: remove the empty string
+
+error: aborting due to 2 previous errors