4 #![warn(clippy, clippy_pedantic)]
5 #![allow(unused_parens, unused_variables, missing_docs_in_private_items)]
7 fn id<T>(x: T) -> T { x }
9 fn first(x: (isize, isize)) -> isize { x.0 }
28 if let Some(p) = o { assert_eq!(1, p); }
30 Some(p) => p, // no error, because the p above is in its own scope
35 (1, Some(a)) | (a, Some(1)) => (), // no error though `a` appears twice