1 error: using `write!()` with a format string that ends in a single newline
2 --> $DIR/write_with_newline.rs:13:5
4 LL | write!(&mut v, "Hello/n");
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::write-with-newline` implied by `-D warnings`
8 help: use `writeln!()` instead
10 LL | writeln!(&mut v, "Hello");
13 error: using `write!()` with a format string that ends in a single newline
14 --> $DIR/write_with_newline.rs:14:5
16 LL | write!(&mut v, "Hello {}/n", "world");
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 help: use `writeln!()` instead
20 LL | writeln!(&mut v, "Hello {}", "world");
23 error: using `write!()` with a format string that ends in a single newline
24 --> $DIR/write_with_newline.rs:15:5
26 LL | write!(&mut v, "Hello {} {}/n", "world", "#2");
27 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28 help: use `writeln!()` instead
30 LL | writeln!(&mut v, "Hello {} {}", "world", "#2");
33 error: using `write!()` with a format string that ends in a single newline
34 --> $DIR/write_with_newline.rs:16:5
36 LL | write!(&mut v, "{}/n", 1265);
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38 help: use `writeln!()` instead
40 LL | writeln!(&mut v, "{}", 1265);
43 error: using `write!()` with a format string that ends in a single newline
44 --> $DIR/write_with_newline.rs:35:5
46 LL | write!(&mut v, "//n"); // should fail
47 | ^^^^^^^^^^^^^^^^^^^^^^
48 help: use `writeln!()` instead
50 LL | writeln!(&mut v, "/"); // should fail
53 error: using `write!()` with a format string that ends in a single newline
54 --> $DIR/write_with_newline.rs:42:5
62 help: use `writeln!()` instead
69 error: using `write!()` with a format string that ends in a single newline
70 --> $DIR/write_with_newline.rs:47:5
78 help: use `writeln!()` instead
85 error: aborting due to 7 previous errors