mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 21:53:23 +00:00
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
error: empty string literal in `println!`
|
|
--> tests/ui/println_empty_string.rs:5:5
|
|
|
|
|
LL | println!("");
|
|
| ^^^^^^^^^--^
|
|
| |
|
|
| help: remove the empty string
|
|
|
|
|
= note: `-D clippy::println-empty-string` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::println_empty_string)]`
|
|
|
|
error: empty string literal in `println!`
|
|
--> tests/ui/println_empty_string.rs:8:14
|
|
|
|
|
LL | _ => println!(""),
|
|
| ^^^^^^^^^--^
|
|
| |
|
|
| help: remove the empty string
|
|
|
|
error: empty string literal in `eprintln!`
|
|
--> tests/ui/println_empty_string.rs:12:5
|
|
|
|
|
LL | eprintln!("");
|
|
| ^^^^^^^^^^--^
|
|
| |
|
|
| help: remove the empty string
|
|
|
|
error: empty string literal in `eprintln!`
|
|
--> tests/ui/println_empty_string.rs:15:14
|
|
|
|
|
LL | _ => eprintln!(""),
|
|
| ^^^^^^^^^^--^
|
|
| |
|
|
| help: remove the empty string
|
|
|
|
error: aborting due to 4 previous errors
|
|
|