2020-12-20 16:19:49 +00:00
|
|
|
error: using `eprint!()` with a format string that ends in a single newline
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/eprint_with_newline.rs:5:5
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | eprint!("Hello\n");
|
2020-12-20 16:19:49 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::print-with-newline` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::print_with_newline)]`
|
2020-12-20 16:19:49 +00:00
|
|
|
help: use `eprintln!` instead
|
|
|
|
|
|
2023-08-24 19:32:12 +00:00
|
|
|
LL - eprint!("Hello\n");
|
2021-08-11 14:21:33 +00:00
|
|
|
LL + eprintln!("Hello");
|
2022-06-15 11:15:54 +00:00
|
|
|
|
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
error: using `eprint!()` with a format string that ends in a single newline
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/eprint_with_newline.rs:8:5
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | eprint!("Hello {}\n", "world");
|
2020-12-20 16:19:49 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: use `eprintln!` instead
|
|
|
|
|
|
2023-08-24 19:32:12 +00:00
|
|
|
LL - eprint!("Hello {}\n", "world");
|
2021-08-11 14:21:33 +00:00
|
|
|
LL + eprintln!("Hello {}", "world");
|
2022-06-15 11:15:54 +00:00
|
|
|
|
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
error: using `eprint!()` with a format string that ends in a single newline
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/eprint_with_newline.rs:10:5
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | eprint!("Hello {} {}\n", "world", "#2");
|
2020-12-20 16:19:49 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: use `eprintln!` instead
|
|
|
|
|
|
2023-08-24 19:32:12 +00:00
|
|
|
LL - eprint!("Hello {} {}\n", "world", "#2");
|
2021-08-11 14:21:33 +00:00
|
|
|
LL + eprintln!("Hello {} {}", "world", "#2");
|
2022-06-15 11:15:54 +00:00
|
|
|
|
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
error: using `eprint!()` with a format string that ends in a single newline
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/eprint_with_newline.rs:12:5
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | eprint!("{}\n", 1265);
|
2020-12-20 16:19:49 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: use `eprintln!` instead
|
|
|
|
|
|
2023-08-24 19:32:12 +00:00
|
|
|
LL - eprint!("{}\n", 1265);
|
2021-08-11 14:21:33 +00:00
|
|
|
LL + eprintln!("{}", 1265);
|
2022-06-15 11:15:54 +00:00
|
|
|
|
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
error: using `eprint!()` with a format string that ends in a single newline
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/eprint_with_newline.rs:14:5
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | eprint!("\n");
|
2020-12-20 16:19:49 +00:00
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: use `eprintln!` instead
|
|
|
|
|
|
2023-08-24 19:32:12 +00:00
|
|
|
LL - eprint!("\n");
|
2021-08-11 14:21:33 +00:00
|
|
|
LL + eprintln!();
|
2022-06-15 11:15:54 +00:00
|
|
|
|
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
error: using `eprint!()` with a format string that ends in a single newline
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/eprint_with_newline.rs:37:5
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | eprint!("\\\n");
|
2020-12-20 16:19:49 +00:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: use `eprintln!` instead
|
|
|
|
|
|
2023-08-24 19:32:12 +00:00
|
|
|
LL - eprint!("\\\n");
|
|
|
|
LL + eprintln!("\\");
|
2022-06-15 11:15:54 +00:00
|
|
|
|
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
error: using `eprint!()` with a format string that ends in a single newline
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/eprint_with_newline.rs:46:5
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
|
LL | / eprint!(
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2020-12-20 16:19:49 +00:00
|
|
|
LL | | "
|
|
|
|
LL | | "
|
|
|
|
LL | | );
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
help: use `eprintln!` instead
|
|
|
|
|
|
2021-08-11 14:21:33 +00:00
|
|
|
LL ~ eprintln!(
|
2023-08-24 19:32:12 +00:00
|
|
|
LL |
|
2022-09-21 17:02:37 +00:00
|
|
|
LL ~
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
error: using `eprint!()` with a format string that ends in a single newline
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/eprint_with_newline.rs:51:5
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
|
LL | / eprint!(
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | |
|
2020-12-20 16:19:49 +00:00
|
|
|
LL | | r"
|
|
|
|
LL | | "
|
|
|
|
LL | | );
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
help: use `eprintln!` instead
|
|
|
|
|
|
2021-08-11 14:21:33 +00:00
|
|
|
LL ~ eprintln!(
|
2023-08-24 19:32:12 +00:00
|
|
|
LL |
|
2022-09-21 17:02:37 +00:00
|
|
|
LL ~
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
error: using `eprint!()` with a format string that ends in a single newline
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/eprint_with_newline.rs:60:5
|
2020-12-20 16:19:49 +00:00
|
|
|
|
|
2023-08-24 19:32:12 +00:00
|
|
|
LL | eprint!("\\r\n");
|
2020-12-20 16:19:49 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: use `eprintln!` instead
|
|
|
|
|
|
2023-08-24 19:32:12 +00:00
|
|
|
LL - eprint!("\\r\n");
|
|
|
|
LL + eprintln!("\\r");
|
2022-06-15 11:15:54 +00:00
|
|
|
|
|
2020-12-20 16:19:49 +00:00
|
|
|
|
2022-09-21 17:02:37 +00:00
|
|
|
error: aborting due to 9 previous errors
|
2020-12-20 16:19:49 +00:00
|
|
|
|