rustc_ast_passes::ast_validation

Function deny_equality_constraints

Source
fn deny_equality_constraints(
    this: &AstValidator<'_>,
    predicate: &WhereEqPredicate,
    generics: &Generics,
)
Expand description

When encountering an equality constraint in a where clause, emit an error. If the code seems like it’s setting an associated type, provide an appropriate suggestion.