3 #![warn(clippy::match_like_matches_macro)]
4 #![allow(unreachable_patterns, dead_code)]
29 Some(r) if r == 0 => false,
34 let _zzz = if let Some(5) = x { true } else { false };
93 E::A(a) if a < 10 => false,
94 E::B(a) if a < 10 => false,
102 E::B(a) if a < 10 => false,
124 // should print "z" in suggestion (#6503)
133 // this could also print "z" in suggestion..?
147 fn foo(_x: AnEnum) {}
151 // we can't remove the reference here!
163 fn fun(_val: Option<S>) {}
164 let val = Some(S(42));
165 // we need the reference here because later val is consumed by fun()
166 let _res = match &val {
167 &Some(ref _a) => true,
176 fn fun(_val: Option<S>) {}
177 let val = Some(S(42));
178 let _res = match &val {
179 &Some(ref _a) => true,