2018-04-05 05:46:39 +02:00
|
|
|
error: using `write!()` with a format string that ends in a newline, consider using `writeln!()` instead
|
|
|
|
--> $DIR/write_with_newline.rs:10:5
|
|
|
|
|
|
|
|
|
10 | write!(&mut v, "Hello/n");
|
2018-07-23 00:19:07 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-04-05 05:46:39 +02:00
|
|
|
|
|
|
|
|
= note: `-D write-with-newline` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: using `write!()` with a format string that ends in a newline, consider using `writeln!()` instead
|
|
|
|
--> $DIR/write_with_newline.rs:11:5
|
|
|
|
|
|
|
|
|
11 | write!(&mut v, "Hello {}/n", "world");
|
2018-07-23 00:19:07 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-04-05 05:46:39 +02:00
|
|
|
|
|
|
|
error: using `write!()` with a format string that ends in a newline, consider using `writeln!()` instead
|
|
|
|
--> $DIR/write_with_newline.rs:12:5
|
|
|
|
|
|
|
|
|
12 | write!(&mut v, "Hello {} {}/n/n", "world", "#2");
|
2018-07-23 00:19:07 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-04-05 05:46:39 +02:00
|
|
|
|
|
|
|
error: using `write!()` with a format string that ends in a newline, consider using `writeln!()` instead
|
|
|
|
--> $DIR/write_with_newline.rs:13:5
|
|
|
|
|
|
|
|
|
13 | write!(&mut v, "{}/n", 1265);
|
2018-07-23 00:19:07 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-04-05 05:46:39 +02:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|