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