2018-08-07 15:01:10 -05:00
|
|
|
error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/write_with_newline.rs:22:5
|
2018-04-04 22:46:39 -05:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
22 | write!(&mut v, "Hello/n");
|
2018-07-22 17:19:07 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-04-04 22:46:39 -05:00
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
= note: `-D clippy::write-with-newline` implied by `-D warnings`
|
2018-04-04 22:46:39 -05:00
|
|
|
|
2018-08-07 15:01:10 -05:00
|
|
|
error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/write_with_newline.rs:23:5
|
2018-04-04 22:46:39 -05:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
23 | write!(&mut v, "Hello {}/n", "world");
|
2018-07-22 17:19:07 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-04-04 22:46:39 -05:00
|
|
|
|
2018-08-07 15:01:10 -05:00
|
|
|
error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/write_with_newline.rs:24:5
|
2018-04-04 22:46:39 -05:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
24 | write!(&mut v, "Hello {} {}/n", "world", "#2");
|
2018-08-07 15:01:10 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-04-04 22:46:39 -05:00
|
|
|
|
2018-08-07 15:01:10 -05:00
|
|
|
error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
|
2018-10-06 11:18:06 -05:00
|
|
|
--> $DIR/write_with_newline.rs:25:5
|
2018-04-04 22:46:39 -05:00
|
|
|
|
|
2018-10-06 11:18:06 -05:00
|
|
|
25 | write!(&mut v, "{}/n", 1265);
|
2018-07-22 17:19:07 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-04-04 22:46:39 -05:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|