]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/write_with_newline.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / write_with_newline.stderr
index 8d2ad1b4d97a9e0a7b84550771c9fd8b47ea29f8..c18ec184876b4f5dfa0e1694fadf7abd661a7562 100644 (file)
@@ -1,7 +1,7 @@
 error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
   --> $DIR/write_with_newline.rs:19:5
    |
-19 |     write!(&mut v, "Hello/n");
+LL |     write!(&mut v, "Hello/n");
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `-D clippy::write-with-newline` implied by `-D warnings`
@@ -9,20 +9,26 @@ error: using `write!()` with a format string that ends in a single newline, cons
 error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
   --> $DIR/write_with_newline.rs:20:5
    |
-20 |     write!(&mut v, "Hello {}/n", "world");
+LL |     write!(&mut v, "Hello {}/n", "world");
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
   --> $DIR/write_with_newline.rs:21:5
    |
-21 |     write!(&mut v, "Hello {} {}/n", "world", "#2");
+LL |     write!(&mut v, "Hello {} {}/n", "world", "#2");
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
   --> $DIR/write_with_newline.rs:22:5
    |
-22 |     write!(&mut v, "{}/n", 1265);
+LL |     write!(&mut v, "{}/n", 1265);
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-error: aborting due to 4 previous errors
+error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
+  --> $DIR/write_with_newline.rs:41:5
+   |
+LL |     write!(&mut v, "//n");
+   |     ^^^^^^^^^^^^^^^^^^^^^^
+
+error: aborting due to 5 previous errors