summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/author/matches.rs
blob: 674e07ec2d3da960a33079c121652875c3f4a1b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![allow(clippy::let_and_return)]

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