2 #![warn(clippy::pattern_type_mismatch)]
12 let ref_value = &Value::A(&Some(23));
15 if let Value::B | Value::A(_) = ref_value {}
16 if let &Value::B | &Value::A(Some(_)) = ref_value {}
17 if let Value::B | Value::A(Some(_)) = *ref_value {}
20 if let &Value::B | &Value::A(_) = ref_value {}
21 if let Value::B | Value::A(_) = *ref_value {}
22 if let &Value::B | &Value::A(&Some(_)) = ref_value {}
23 if let Value::B | Value::A(&Some(_)) = *ref_value {}