rustc_hir_analysis::hir_ty_lowering::errors

Function prohibit_assoc_item_constraint

source
pub fn prohibit_assoc_item_constraint(
    cx: &dyn HirTyLowerer<'_>,
    constraint: &AssocItemConstraint<'_>,
    segment: Option<(DefId, &PathSegment<'_>, Span)>,
) -> ErrorGuaranteed
Expand description

Emit an error for the given associated item constraint.