rust-clippy/tests/ui/author/matches.rs
2019-01-08 21:46:39 +01:00

13 lines
193 B
Rust

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