rust/tests/ui/write_with_newline.stderr

29 lines
1.1 KiB
Plaintext
Raw Normal View History

error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
2018-10-06 18:18:06 +02:00
--> $DIR/write_with_newline.rs:22:5
|
2018-10-06 18:18:06 +02:00
22 | 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-10-06 18:18:06 +02:00
--> $DIR/write_with_newline.rs:23:5
|
2018-10-06 18:18:06 +02:00
23 | write!(&mut v, "Hello {}/n", "world");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead
2018-10-06 18:18:06 +02:00
--> $DIR/write_with_newline.rs:24:5
|
2018-10-06 18:18:06 +02:00
24 | 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-10-06 18:18:06 +02:00
--> $DIR/write_with_newline.rs:25:5
|
2018-10-06 18:18:06 +02:00
25 | write!(&mut v, "{}/n", 1265);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 4 previous errors