1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//@ check-pass #![allow(clippy::let_and_return)] fn main() { #[clippy::author] let a = match 42 { 16 => 5, 17 => { let x = 3; x }, _ => 1, }; }