5 clippy::toplevel_ref_arg,
9 #![warn(clippy::blacklisted_name)]
17 // Unlike these others, `bar` is actually considered an acceptable name.
18 // Among many other legitimate uses, bar commonly refers to a period of time in music.
19 // See https://github.com/rust-lang/rust-clippy/issues/5225.
26 match (42, Some(1337), Some(0)) {
27 (foo, Some(baz), quux @ Some(_)) => (),
32 fn issue_1647(mut foo: u8) {
34 if let Some(mut quux) = Some(42) {}
39 if let Some(ref quux) = Some(42) {}
42 fn issue_1647_ref_mut() {
44 if let Some(ref mut quux) = Some(42) {}