3 #![warn(clippy::match_like_matches_macro)]
4 #![allow(unreachable_patterns, dead_code)]
10 let _y = matches!(x, Some(0));
13 let _w = matches!(x, Some(_));
19 let _zz = !matches!(x, Some(r) if r == 0);
22 let _zzz = matches!(x, Some(5));
46 let _ans = matches!(x, E::A(_) | E::B(_));
50 let _ans = !matches!(x, E::B(_) | E::C);
73 E::A(a) if a < 10 => false,
74 E::B(a) if a < 10 => false,
82 E::B(a) if a < 10 => false,