]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/author/matches.rs
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / author / matches.rs
CommitLineData
f20569fa
XL
1#![allow(clippy::let_and_return)]
2
3fn main() {
4 #[clippy::author]
5 let a = match 42 {
6 16 => 5,
7 17 => {
8 let x = 3;
9 x
10 },
11 _ => 1,
12 };
13}