rustc_trait_selection::traits

Function dyn_compatibility_violations_for_assoc_item

source
pub fn dyn_compatibility_violations_for_assoc_item(
    tcx: TyCtxt<'_>,
    trait_def_id: DefId,
    item: AssocItem,
) -> Vec<DynCompatibilityViolation>
Expand description

Returns Some(_) if this item makes the containing trait dyn-incompatible.