rust/tests/ui/write_with_newline.stderr

120 lines
2.8 KiB
Plaintext
Raw Normal View History

error: using `write!()` with a format string that ends in a single newline
--> $DIR/write_with_newline.rs:13:5
|
LL | write!(v, "Hello/n");
| ^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::write-with-newline` implied by `-D warnings`
2022-08-30 07:20:49 -05:00
help: use `writeln!` instead
|
LL - write!(v, "Hello/n");
LL + writeln!(v, "Hello");
2022-06-15 06:15:54 -05:00
|
error: using `write!()` with a format string that ends in a single newline
--> $DIR/write_with_newline.rs:14:5
|
LL | write!(v, "Hello {}/n", "world");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2019-10-26 14:53:42 -05:00
|
2022-08-30 07:20:49 -05:00
help: use `writeln!` instead
|
LL - write!(v, "Hello {}/n", "world");
LL + writeln!(v, "Hello {}", "world");
2022-06-15 06:15:54 -05:00
|
error: using `write!()` with a format string that ends in a single newline
--> $DIR/write_with_newline.rs:15:5
|
LL | write!(v, "Hello {} {}/n", "world", "#2");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2019-10-26 14:53:42 -05:00
|
2022-08-30 07:20:49 -05:00
help: use `writeln!` instead
|
LL - write!(v, "Hello {} {}/n", "world", "#2");
LL + writeln!(v, "Hello {} {}", "world", "#2");
2022-06-15 06:15:54 -05:00
|
error: using `write!()` with a format string that ends in a single newline
--> $DIR/write_with_newline.rs:16:5
|
LL | write!(v, "{}/n", 1265);
| ^^^^^^^^^^^^^^^^^^^^^^^
2019-10-26 14:53:42 -05:00
|
2022-08-30 07:20:49 -05:00
help: use `writeln!` instead
|
LL - write!(v, "{}/n", 1265);
LL + writeln!(v, "{}", 1265);
2022-06-15 06:15:54 -05:00
|
error: using `write!()` with a format string that ends in a single newline
--> $DIR/write_with_newline.rs:17:5
|
LL | write!(v, "/n");
| ^^^^^^^^^^^^^^^
|
2022-08-30 07:20:49 -05:00
help: use `writeln!` instead
|
LL - write!(v, "/n");
LL + writeln!(v);
2022-06-15 06:15:54 -05:00
|
error: using `write!()` with a format string that ends in a single newline
--> $DIR/write_with_newline.rs:36:5
|
2023-04-20 10:19:36 -05:00
LL | write!(v, "///n"); // should fail
| ^^^^^^^^^^^^^^^^^
2019-10-26 14:53:42 -05:00
|
2022-08-30 07:20:49 -05:00
help: use `writeln!` instead
|
2023-04-20 10:19:36 -05:00
LL - write!(v, "///n"); // should fail
LL + writeln!(v, "//"); // should fail
2022-06-15 06:15:54 -05:00
|
error: using `write!()` with a format string that ends in a single newline
--> $DIR/write_with_newline.rs:43:5
|
LL | / write!(
LL | | v,
LL | | "
LL | | "
LL | | );
| |_____^
2019-10-26 14:53:42 -05:00
|
2022-08-30 07:20:49 -05:00
help: use `writeln!` instead
|
2021-08-11 09:21:33 -05:00
LL ~ writeln!(
2022-08-30 07:20:49 -05:00
LL ~ v
|
error: using `write!()` with a format string that ends in a single newline
--> $DIR/write_with_newline.rs:48:5
|
LL | / write!(
LL | | v,
LL | | r"
LL | | "
LL | | );
| |_____^
2019-10-26 14:53:42 -05:00
|
2022-08-30 07:20:49 -05:00
help: use `writeln!` instead
|
2021-08-11 09:21:33 -05:00
LL ~ writeln!(
2022-08-30 07:20:49 -05:00
LL ~ v
|
error: using `write!()` with a format string that ends in a single newline
--> $DIR/write_with_newline.rs:57:5
|
2023-04-20 10:19:36 -05:00
LL | write!(v, "//r/n");
| ^^^^^^^^^^^^^^^^^^
|
2022-08-30 07:20:49 -05:00
help: use `writeln!` instead
|
2023-04-20 10:19:36 -05:00
LL - write!(v, "//r/n");
LL + writeln!(v, "//r");
2022-06-15 06:15:54 -05:00
|
2022-08-30 07:20:49 -05:00
error: aborting due to 9 previous errors