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