pub(crate) fn check_associated_item( tcx: TyCtxt<'_>, item_id: LocalDefId, ) -> Result<(), ErrorGuaranteed>