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

14 lines
198 B
Rust
Raw Normal View History

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