rust-clippy/tests/ui/author/matches.rs
2019-09-27 18:01:04 +02:00

13 lines
198 B
Rust

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