about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/println_empty_string.rs
blob: 028ddb60dbce4dd7c2863264dc1445d103e14c43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#![allow(clippy::match_single_binding)]

fn main() {
    println!();
    println!("");
    //~^ println_empty_string

    match "a" {
        _ => println!(""),
        //~^ println_empty_string
    }

    eprintln!();
    eprintln!("");
    //~^ println_empty_string

    match "a" {
        _ => eprintln!(""),
        //~^ println_empty_string
    }
}