]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/write_with_newline.stderr
iterate List by value
[rust.git] / tests / ui / write_with_newline.stderr
index c1f1d64c2e3296369fac32c5f726b46fff741734..2473329ca7276e149eb6702d32ea76c87de995c6 100644 (file)
@@ -15,6 +15,7 @@ error: using `write!()` with a format string that ends in a single newline
    |
 LL |     write!(&mut v, "Hello {}/n", "world");
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   |
 help: use `writeln!()` instead
    |
 LL |     writeln!(&mut v, "Hello {}", "world");
@@ -25,6 +26,7 @@ error: using `write!()` with a format string that ends in a single newline
    |
 LL |     write!(&mut v, "Hello {} {}/n", "world", "#2");
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   |
 help: use `writeln!()` instead
    |
 LL |     writeln!(&mut v, "Hello {} {}", "world", "#2");
@@ -35,6 +37,7 @@ error: using `write!()` with a format string that ends in a single newline
    |
 LL |     write!(&mut v, "{}/n", 1265);
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   |
 help: use `writeln!()` instead
    |
 LL |     writeln!(&mut v, "{}", 1265);
@@ -45,6 +48,7 @@ error: using `write!()` with a format string that ends in a single newline
    |
 LL |     write!(&mut v, "//n"); // should fail
    |     ^^^^^^^^^^^^^^^^^^^^^^
+   |
 help: use `writeln!()` instead
    |
 LL |     writeln!(&mut v, "/"); // should fail
@@ -59,6 +63,7 @@ LL | |         "
 LL | | "
 LL | |     );
    | |_____^
+   |
 help: use `writeln!()` instead
    |
 LL |     writeln!(
@@ -75,6 +80,7 @@ LL | |         r"
 LL | | "
 LL | |     );
    | |_____^
+   |
 help: use `writeln!()` instead
    |
 LL |     writeln!(
@@ -82,5 +88,27 @@ LL |         &mut v,
 LL |         r""
    |
 
-error: aborting due to 7 previous errors
+error: using `write!()` with a format string that ends in a single newline
+  --> $DIR/write_with_newline.rs:56:5
+   |
+LL |     write!(&mut v, "/r/n"); //~ ERROR
+   |     ^^^^^^^^^^^^^^^^^^^^^^^
+   |
+help: use `writeln!()` instead
+   |
+LL |     writeln!(&mut v, "/r"); //~ ERROR
+   |     ^^^^^^^             --
+
+error: using `write!()` with a format string that ends in a single newline
+  --> $DIR/write_with_newline.rs:57:5
+   |
+LL |     write!(&mut v, "foo/rbar/n");
+   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   |
+help: use `writeln!()` instead
+   |
+LL |     writeln!(&mut v, "foo/rbar");
+   |     ^^^^^^^                  --
+
+error: aborting due to 9 previous errors