Function rustc_trait_selection::traits::object_safety::object_safety_violations_for_assoc_item
source · pub fn object_safety_violations_for_assoc_item(
tcx: TyCtxt<'_>,
trait_def_id: DefId,
item: AssocItem
) -> Vec<ObjectSafetyViolation>
Expand description
Returns Some(_)
if this item makes the containing trait not object safe.