diff options
Diffstat (limited to '')
-rw-r--r-- | src/tools/clippy/tests/ui/println_empty_string.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/println_empty_string.rs b/src/tools/clippy/tests/ui/println_empty_string.rs new file mode 100644 index 000000000..80fdb3e6e --- /dev/null +++ b/src/tools/clippy/tests/ui/println_empty_string.rs @@ -0,0 +1,18 @@ +// run-rustfix +#![allow(clippy::match_single_binding)] + +fn main() { + println!(); + println!(""); + + match "a" { + _ => println!(""), + } + + eprintln!(); + eprintln!(""); + + match "a" { + _ => eprintln!(""), + } +} |