summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/author/if.rs
blob: 946088ab34619667e9c6e676f47b5839fd0e2944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[allow(clippy::all)]

fn main() {
    #[clippy::author]
    let _ = if true {
        1 == 1;
    } else {
        2 == 2;
    };

    let a = true;

    #[clippy::author]
    if let true = a {
    } else {
    };
}