1 error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
2 --> $DIR/write_with_newline.rs:19:5
4 LL | write!(&mut v, "Hello/n");
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::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:20:5
12 LL | 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:21:5
18 LL | 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:22:5
24 LL | write!(&mut v, "{}/n", 1265);
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
28 --> $DIR/write_with_newline.rs:41:5
30 LL | write!(&mut v, "//n");
31 | ^^^^^^^^^^^^^^^^^^^^^^
33 error: aborting due to 5 previous errors