123 lines
2.8 KiB
Plaintext
123 lines
2.8 KiB
Plaintext
error: using `eprint!()` with a format string that ends in a single newline
|
|
--> tests/ui/eprint_with_newline.rs:5:5
|
|
|
|
|
LL | eprint!("Hello\n");
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::print-with-newline` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::print_with_newline)]`
|
|
help: use `eprintln!` instead
|
|
|
|
|
LL - eprint!("Hello\n");
|
|
LL + eprintln!("Hello");
|
|
|
|
|
|
|
error: using `eprint!()` with a format string that ends in a single newline
|
|
--> tests/ui/eprint_with_newline.rs:8:5
|
|
|
|
|
LL | eprint!("Hello {}\n", "world");
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: use `eprintln!` instead
|
|
|
|
|
LL - eprint!("Hello {}\n", "world");
|
|
LL + eprintln!("Hello {}", "world");
|
|
|
|
|
|
|
error: using `eprint!()` with a format string that ends in a single newline
|
|
--> tests/ui/eprint_with_newline.rs:10:5
|
|
|
|
|
LL | eprint!("Hello {} {}\n", "world", "#2");
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: use `eprintln!` instead
|
|
|
|
|
LL - eprint!("Hello {} {}\n", "world", "#2");
|
|
LL + eprintln!("Hello {} {}", "world", "#2");
|
|
|
|
|
|
|
error: using `eprint!()` with a format string that ends in a single newline
|
|
--> tests/ui/eprint_with_newline.rs:12:5
|
|
|
|
|
LL | eprint!("{}\n", 1265);
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: use `eprintln!` instead
|
|
|
|
|
LL - eprint!("{}\n", 1265);
|
|
LL + eprintln!("{}", 1265);
|
|
|
|
|
|
|
error: using `eprint!()` with a format string that ends in a single newline
|
|
--> tests/ui/eprint_with_newline.rs:14:5
|
|
|
|
|
LL | eprint!("\n");
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
help: use `eprintln!` instead
|
|
|
|
|
LL - eprint!("\n");
|
|
LL + eprintln!();
|
|
|
|
|
|
|
error: using `eprint!()` with a format string that ends in a single newline
|
|
--> tests/ui/eprint_with_newline.rs:37:5
|
|
|
|
|
LL | eprint!("\\\n");
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
help: use `eprintln!` instead
|
|
|
|
|
LL - eprint!("\\\n");
|
|
LL + eprintln!("\\");
|
|
|
|
|
|
|
error: using `eprint!()` with a format string that ends in a single newline
|
|
--> tests/ui/eprint_with_newline.rs:46:5
|
|
|
|
|
LL | / eprint!(
|
|
LL | |
|
|
LL | | "
|
|
LL | | "
|
|
LL | | );
|
|
| |_____^
|
|
|
|
|
help: use `eprintln!` instead
|
|
|
|
|
LL ~ eprintln!(
|
|
LL |
|
|
LL ~
|
|
|
|
|
|
|
error: using `eprint!()` with a format string that ends in a single newline
|
|
--> tests/ui/eprint_with_newline.rs:51:5
|
|
|
|
|
LL | / eprint!(
|
|
LL | |
|
|
LL | | r"
|
|
LL | | "
|
|
LL | | );
|
|
| |_____^
|
|
|
|
|
help: use `eprintln!` instead
|
|
|
|
|
LL ~ eprintln!(
|
|
LL |
|
|
LL ~
|
|
|
|
|
|
|
error: using `eprint!()` with a format string that ends in a single newline
|
|
--> tests/ui/eprint_with_newline.rs:60:5
|
|
|
|
|
LL | eprint!("\\r\n");
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
help: use `eprintln!` instead
|
|
|
|
|
LL - eprint!("\\r\n");
|
|
LL + eprintln!("\\r");
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
|
|