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:17:5
49 LL | write!(&mut v, "/n");
50 | ^^^^^^^^^^^^^^^^^^^^
52 help: use `writeln!()` instead
54 LL | writeln!(&mut v, );
57 error: using `write!()` with a format string that ends in a single newline
58 --> $DIR/write_with_newline.rs:36:5
60 LL | write!(&mut v, "//n"); // should fail
61 | ^^^^^^^^^^^^^^^^^^^^^^
63 help: use `writeln!()` instead
65 LL | writeln!(&mut v, "/"); // should fail
68 error: using `write!()` with a format string that ends in a single newline
69 --> $DIR/write_with_newline.rs:43:5
78 help: use `writeln!()` instead
85 error: using `write!()` with a format string that ends in a single newline
86 --> $DIR/write_with_newline.rs:48:5
95 help: use `writeln!()` instead
102 error: using `write!()` with a format string that ends in a single newline
103 --> $DIR/write_with_newline.rs:57:5
105 LL | write!(&mut v, "/r/n"); //~ ERROR
106 | ^^^^^^^^^^^^^^^^^^^^^^^
108 help: use `writeln!()` instead
110 LL | writeln!(&mut v, "/r"); //~ ERROR
113 error: using `write!()` with a format string that ends in a single newline
114 --> $DIR/write_with_newline.rs:58:5
116 LL | write!(&mut v, "foo/rbar/n");
117 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119 help: use `writeln!()` instead
121 LL | writeln!(&mut v, "foo/rbar");
124 error: aborting due to 10 previous errors