rust-clippy/tests/ui/write_with_newline.stderr

35 lines
1.3 KiB
Text
Raw Normal View History

error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
2018-12-10 05:27:19 +00:00
--> $DIR/write_with_newline.rs:19:5
|
2018-12-27 15:57:55 +00:00
LL | write!(&mut v, "Hello/n");
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::write-with-newline` implied by `-D warnings`
error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
2018-12-10 05:27:19 +00:00
--> $DIR/write_with_newline.rs:20:5
|
2018-12-27 15:57:55 +00:00
LL | write!(&mut v, "Hello {}/n", "world");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
2018-12-10 05:27:19 +00:00
--> $DIR/write_with_newline.rs:21:5
|
2018-12-27 15:57:55 +00:00
LL | write!(&mut v, "Hello {} {}/n", "world", "#2");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
2018-12-10 05:27:19 +00:00
--> $DIR/write_with_newline.rs:22:5
|
2018-12-27 15:57:55 +00:00
LL | write!(&mut v, "{}/n", 1265);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
2018-12-14 05:24:02 +00:00
--> $DIR/write_with_newline.rs:41:5
|
2018-12-27 15:57:55 +00:00
LL | write!(&mut v, "//n");
| ^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 5 previous errors