38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
14 lines
193 B
Rust
14 lines
193 B
Rust
#![feature(tool_attributes)]
|
|
|
|
fn main() {
|
|
#[clippy::author]
|
|
let a = match 42 {
|
|
16 => 5,
|
|
17 => {
|
|
let x = 3;
|
|
x
|
|
},
|
|
_ => 1,
|
|
};
|
|
}
|