rust/tests/ui/author/matches.rs

14 lines
198 B
Rust
Raw Normal View History

2019-09-27 18:01:04 +02:00
#![allow(clippy::let_and_return)]
fn main() {
2018-05-19 14:04:57 +02:00
#[clippy::author]
let a = match 42 {
16 => 5,
17 => {
let x = 3;
x
},
_ => 1,
};
}