1 error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
2 --> $DIR/write_with_newline.rs:10:5
4 10 | write!(&mut v, "Hello/n");
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D write-with-newline` implied by `-D warnings`
9 error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
10 --> $DIR/write_with_newline.rs:11:5
12 11 | write!(&mut v, "Hello {}/n", "world");
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
16 --> $DIR/write_with_newline.rs:12:5
18 12 | write!(&mut v, "Hello {} {}/n", "world", "#2");
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
22 --> $DIR/write_with_newline.rs:13:5
24 13 | write!(&mut v, "{}/n", 1265);
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 error: aborting due to 4 previous errors