about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/author/matches.rs
blob: e80d9c51023a7870031831234162ececebe2f74f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ check-pass

#![allow(clippy::let_and_return)]

fn main() {
    #[clippy::author]
    let a = match 42 {
        16 => 5,
        17 => {
            let x = 3;
            x
        },
        _ => 1,
    };
}