2019-05-23 13:11:38 -05:00
|
|
|
error: using `write!()` with a format string that ends in a single newline
|
|
|
|
--> $DIR/write_with_newline.rs:13:5
|
2018-04-04 22:46:39 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | 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`
|
2019-05-23 13:11:38 -05:00
|
|
|
help: use `writeln!()` instead
|
|
|
|
|
|
|
|
|
LL | writeln!(&mut v, "Hello");
|
|
|
|
| ^^^^^^^ --
|
2018-04-04 22:46:39 -05:00
|
|
|
|
2019-05-23 13:11:38 -05:00
|
|
|
error: using `write!()` with a format string that ends in a single newline
|
|
|
|
--> $DIR/write_with_newline.rs:14:5
|
2018-04-04 22:46:39 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | write!(&mut v, "Hello {}/n", "world");
|
2018-07-22 17:19:07 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-10-26 14:53:42 -05:00
|
|
|
|
|
2019-05-23 13:11:38 -05:00
|
|
|
help: use `writeln!()` instead
|
|
|
|
|
|
|
|
|
LL | writeln!(&mut v, "Hello {}", "world");
|
|
|
|
| ^^^^^^^ --
|
2018-04-04 22:46:39 -05:00
|
|
|
|
2019-05-23 13:11:38 -05:00
|
|
|
error: using `write!()` with a format string that ends in a single newline
|
|
|
|
--> $DIR/write_with_newline.rs:15:5
|
2018-04-04 22:46:39 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | write!(&mut v, "Hello {} {}/n", "world", "#2");
|
2018-08-07 15:01:10 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-10-26 14:53:42 -05:00
|
|
|
|
|
2019-05-23 13:11:38 -05:00
|
|
|
help: use `writeln!()` instead
|
|
|
|
|
|
|
|
|
LL | writeln!(&mut v, "Hello {} {}", "world", "#2");
|
|
|
|
| ^^^^^^^ --
|
2018-04-04 22:46:39 -05:00
|
|
|
|
2019-05-23 13:11:38 -05:00
|
|
|
error: using `write!()` with a format string that ends in a single newline
|
|
|
|
--> $DIR/write_with_newline.rs:16:5
|
2018-04-04 22:46:39 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | write!(&mut v, "{}/n", 1265);
|
2018-07-22 17:19:07 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-10-26 14:53:42 -05:00
|
|
|
|
|
2019-05-23 13:11:38 -05:00
|
|
|
help: use `writeln!()` instead
|
|
|
|
|
|
|
|
|
LL | writeln!(&mut v, "{}", 1265);
|
|
|
|
| ^^^^^^^ --
|
2018-04-04 22:46:39 -05:00
|
|
|
|
2019-05-23 13:11:38 -05:00
|
|
|
error: using `write!()` with a format string that ends in a single newline
|
|
|
|
--> $DIR/write_with_newline.rs:35:5
|
2018-12-11 00:28:25 -06:00
|
|
|
|
|
2019-02-17 21:32:58 -06:00
|
|
|
LL | write!(&mut v, "//n"); // should fail
|
2018-12-11 00:28:25 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2019-10-26 14:53:42 -05:00
|
|
|
|
|
2019-05-23 13:11:38 -05:00
|
|
|
help: use `writeln!()` instead
|
|
|
|
|
|
|
|
|
LL | writeln!(&mut v, "/"); // should fail
|
|
|
|
| ^^^^^^^ --
|
2018-12-11 00:28:25 -06:00
|
|
|
|
2019-05-23 13:11:38 -05:00
|
|
|
error: using `write!()` with a format string that ends in a single newline
|
|
|
|
--> $DIR/write_with_newline.rs:42:5
|
2019-02-18 10:39:23 -06:00
|
|
|
|
|
|
|
|
LL | / write!(
|
|
|
|
LL | | &mut v,
|
|
|
|
LL | | "
|
|
|
|
LL | | "
|
|
|
|
LL | | );
|
|
|
|
| |_____^
|
2019-10-26 14:53:42 -05:00
|
|
|
|
|
2019-05-23 13:11:38 -05:00
|
|
|
help: use `writeln!()` instead
|
|
|
|
|
|
|
|
|
LL | writeln!(
|
|
|
|
LL | &mut v,
|
|
|
|
LL | ""
|
|
|
|
|
|
2019-02-18 10:39:23 -06:00
|
|
|
|
2019-05-23 13:11:38 -05:00
|
|
|
error: using `write!()` with a format string that ends in a single newline
|
|
|
|
--> $DIR/write_with_newline.rs:47:5
|
2019-02-18 10:39:23 -06:00
|
|
|
|
|
|
|
|
LL | / write!(
|
|
|
|
LL | | &mut v,
|
|
|
|
LL | | r"
|
|
|
|
LL | | "
|
|
|
|
LL | | );
|
|
|
|
| |_____^
|
2019-10-26 14:53:42 -05:00
|
|
|
|
|
2019-05-23 13:11:38 -05:00
|
|
|
help: use `writeln!()` instead
|
|
|
|
|
|
|
|
|
LL | writeln!(
|
|
|
|
LL | &mut v,
|
|
|
|
LL | r""
|
|
|
|
|
|
2019-02-18 10:39:23 -06:00
|
|
|
|
2019-11-02 23:41:22 -05: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-04 22:46:39 -05:00
|
|
|
|