2 Checks for bindings that destructure a reference and borrow the inner
6 This pattern has no effect in almost all cases.
9 In some cases, `&ref` is needed to avoid a lifetime mismatch error.
12 fn foo(a: &Option<String>, b: &Option<String>) {
14 (None, &ref c) | (&ref c, None) => (),
15 (&Some(ref c), _) => (),
22 let mut v = Vec::<String>::new();
23 v.iter_mut().filter(|&ref a| a.is_empty());
28 let mut v = Vec::<String>::new();
29 v.iter_mut().filter(|a| a.is_empty());