mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
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,
|
|
};
|
|
}
|