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 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:11: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:12: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:13: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:32:5
30 LL | write!(&mut v, "//n"); // should fail
31 | ^^^^^^^^^^^^^^^^^^^^^^
33 error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
34 --> $DIR/write_with_newline.rs:39:5
43 error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
44 --> $DIR/write_with_newline.rs:44:5
53 error: aborting due to 7 previous errors