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 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19 help: use `writeln!()` instead
21 LL | writeln!(&mut v, "Hello {}", "world");
24 error: using `write!()` with a format string that ends in a single newline
25 --> $DIR/write_with_newline.rs:15:5
27 LL | write!(&mut v, "Hello {} {}/n", "world", "#2");
28 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30 help: use `writeln!()` instead
32 LL | writeln!(&mut v, "Hello {} {}", "world", "#2");
35 error: using `write!()` with a format string that ends in a single newline
36 --> $DIR/write_with_newline.rs:16:5
38 LL | write!(&mut v, "{}/n", 1265);
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41 help: use `writeln!()` instead
43 LL | writeln!(&mut v, "{}", 1265);
46 error: using `write!()` with a format string that ends in a single newline
47 --> $DIR/write_with_newline.rs:35:5
49 LL | write!(&mut v, "//n"); // should fail
50 | ^^^^^^^^^^^^^^^^^^^^^^
52 help: use `writeln!()` instead
54 LL | writeln!(&mut v, "/"); // should fail
57 error: using `write!()` with a format string that ends in a single newline
58 --> $DIR/write_with_newline.rs:42:5
67 help: use `writeln!()` instead
74 error: using `write!()` with a format string that ends in a single newline
75 --> $DIR/write_with_newline.rs:47:5
84 help: use `writeln!()` instead
91 error: aborting due to 7 previous errors