mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-17 11:05:20 +00:00
14 lines
198 B
Rust
14 lines
198 B
Rust
#![allow(clippy::let_and_return)]
|
|
|
|
fn main() {
|
|
#[clippy::author]
|
|
let a = match 42 {
|
|
16 => 5,
|
|
17 => {
|
|
let x = 3;
|
|
x
|
|
},
|
|
_ => 1,
|
|
};
|
|
}
|