rust/tests/ui/author/matches.rs
2018-05-19 14:04:57 +02:00

14 lines
193 B
Rust

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