2018-08-07 20:01:10 +00:00
|
|
|
error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/write_with_newline.rs:10:5
|
2018-04-05 03:46:39 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | write!(&mut v, "Hello/n");
|
2018-07-22 22:19:07 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-04-05 03:46:39 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::write-with-newline` implied by `-D warnings`
|
2018-04-05 03:46:39 +00:00
|
|
|
|
2018-08-07 20:01:10 +00:00
|
|
|
error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/write_with_newline.rs:11:5
|
2018-04-05 03:46:39 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | write!(&mut v, "Hello {}/n", "world");
|
2018-07-22 22:19:07 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-04-05 03:46:39 +00:00
|
|
|
|
2018-08-07 20:01:10 +00:00
|
|
|
error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/write_with_newline.rs:12:5
|
2018-04-05 03:46:39 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | write!(&mut v, "Hello {} {}/n", "world", "#2");
|
2018-08-07 20:01:10 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-04-05 03:46:39 +00:00
|
|
|
|
2018-08-07 20:01:10 +00:00
|
|
|
error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/write_with_newline.rs:13:5
|
2018-04-05 03:46:39 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | write!(&mut v, "{}/n", 1265);
|
2018-07-22 22:19:07 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-04-05 03:46:39 +00:00
|
|
|
|
2018-12-11 06:28:25 +00:00
|
|
|
error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/write_with_newline.rs:32:5
|
2018-12-11 06:28:25 +00:00
|
|
|
|
|
2019-02-18 03:32:58 +00:00
|
|
|
LL | write!(&mut v, "//n"); // should fail
|
2018-12-11 06:28:25 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2019-02-18 16:39:23 +00:00
|
|
|
error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
|
|
|
|
--> $DIR/write_with_newline.rs:39:5
|
|
|
|
|
|
|
|
|
LL | / write!(
|
|
|
|
LL | | &mut v,
|
|
|
|
LL | | "
|
|
|
|
LL | | "
|
|
|
|
LL | | );
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
|
|
|
|
--> $DIR/write_with_newline.rs:44:5
|
|
|
|
|
|
|
|
|
LL | / write!(
|
|
|
|
LL | | &mut v,
|
|
|
|
LL | | r"
|
|
|
|
LL | | "
|
|
|
|
LL | | );
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
2018-04-05 03:46:39 +00:00
|
|
|
|