rustc_trait_selection::traits::dyn_compatibility

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.