rust-clippy/tests/ui/author/matches.rs

14 lines
198 B
Rust
Raw Normal View History

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