rust/tests/ui/author/matches.rs

14 lines
193 B
Rust
Raw Normal View History

2018-05-19 07:04:57 -05:00
#![feature(tool_attributes)]
fn main() {
2018-05-19 07:04:57 -05:00
#[clippy::author]
let a = match 42 {
16 => 5,
17 => {
let x = 3;
x
},
_ => 1,
};
}