rust-clippy/tests/ui/eprint_with_newline.stderr

118 lines
2.7 KiB
Text
Raw Normal View History

error: using `eprint!()` with a format string that ends in a single newline
--> $DIR/eprint_with_newline.rs:5:5
|
LL | eprint!("Hello\n");
| ^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::print-with-newline` implied by `-D warnings`
help: use `eprintln!` instead
|
LL - eprint!("Hello\n");
2021-08-11 14:21:33 +00:00
LL + eprintln!("Hello");
2022-06-15 11:15:54 +00:00
|
error: using `eprint!()` with a format string that ends in a single newline
--> $DIR/eprint_with_newline.rs:6:5
|
LL | eprint!("Hello {}\n", "world");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `eprintln!` instead
|
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
|
error: using `eprint!()` with a format string that ends in a single newline
--> $DIR/eprint_with_newline.rs:7:5
|
LL | eprint!("Hello {} {}\n", "world", "#2");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: use `eprintln!` instead
|
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
|
error: using `eprint!()` with a format string that ends in a single newline
--> $DIR/eprint_with_newline.rs:8:5
|
LL | eprint!("{}\n", 1265);
| ^^^^^^^^^^^^^^^^^^^^^
|
help: use `eprintln!` instead
|
LL - eprint!("{}\n", 1265);
2021-08-11 14:21:33 +00:00
LL + eprintln!("{}", 1265);
2022-06-15 11:15:54 +00:00
|
error: using `eprint!()` with a format string that ends in a single newline
--> $DIR/eprint_with_newline.rs:9:5
|
LL | eprint!("\n");
| ^^^^^^^^^^^^^
|
help: use `eprintln!` instead
|
LL - eprint!("\n");
2021-08-11 14:21:33 +00:00
LL + eprintln!();
2022-06-15 11:15:54 +00:00
|
error: using `eprint!()` with a format string that ends in a single newline
--> $DIR/eprint_with_newline.rs:31:5
|
LL | eprint!("\\\n");
| ^^^^^^^^^^^^^^^
|
help: use `eprintln!` instead
|
LL - eprint!("\\\n");
LL + eprintln!("\\");
2022-06-15 11:15:54 +00:00
|
error: using `eprint!()` with a format string that ends in a single newline
--> $DIR/eprint_with_newline.rs:39:5
|
LL | / eprint!(
LL | | "
LL | | "
LL | | );
| |_____^
|
help: use `eprintln!` instead
|
2021-08-11 14:21:33 +00:00
LL ~ eprintln!(
2022-08-30 12:20:49 +00:00
LL ~
|
error: using `eprint!()` with a format string that ends in a single newline
--> $DIR/eprint_with_newline.rs:43:5
|
LL | / eprint!(
LL | | r"
LL | | "
LL | | );
| |_____^
|
help: use `eprintln!` instead
|
2021-08-11 14:21:33 +00:00
LL ~ eprintln!(
2022-08-30 12:20:49 +00:00
LL ~
|
error: using `eprint!()` with a format string that ends in a single newline
--> $DIR/eprint_with_newline.rs:51:5
|
LL | eprint!("\\r\n");
| ^^^^^^^^^^^^^^^^
|
help: use `eprintln!` instead
|
LL - eprint!("\\r\n");
LL + eprintln!("\\r");
2022-06-15 11:15:54 +00:00
|
2022-08-30 12:20:49 +00:00
error: aborting due to 9 previous errors