detect_mixed_deref_pat_ctors

Function detect_mixed_deref_pat_ctors 

Source
pub(crate) fn detect_mixed_deref_pat_ctors<'p, Cx: PatCx>(
    cx: &Cx,
    arms: &[MatchArm<'p, Cx>],
) -> Result<(), Cx::Error>
Expand description

Validate that deref patterns and normal constructors aren’t used to match on the same place.