]> 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 3e6ec33623aeb4bd68d6a73228caffe16e8a6ce1..25e69ec48e7e28cb413a8f60a1b3b5969aaa3762 100644 (file)
@@ -1,16 +1,20 @@
-error: using `writeln!(&mut v, "")`
-  --> $DIR/writeln_empty_string.rs:21:5
+error: empty string literal in `writeln!`
+  --> $DIR/writeln_empty_string.rs:11:5
    |
-21 |     writeln!(&mut v, "");
-   |     ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `writeln!(&mut v)`
+LL |     writeln!(v, "");
+   |     ^^^^^^^^^^----^
+   |               |
+   |               help: remove the empty string
    |
    = note: `-D clippy::writeln-empty-string` implied by `-D warnings`
 
-error: using `writeln!(&mut suggestion, "")`
-  --> $DIR/writeln_empty_string.rs:24:5
+error: empty string literal in `writeln!`
+  --> $DIR/writeln_empty_string.rs:14:5
    |
-24 |     writeln!(&mut suggestion, "");
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `writeln!(&mut suggestion)`
+LL |     writeln!(suggestion, "");
+   |     ^^^^^^^^^^^^^^^^^^^----^
+   |                        |
+   |                        help: remove the empty string
 
 error: aborting due to 2 previous errors