rust-clippy/tests/ui/author/matches.rs
2018-05-11 19:05:34 +02:00

13 lines
194 B
Rust

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