We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
deny_equality_constraints
1 parent b13f234 commit b17b20cCopy full SHA for b17b20c
src/librustc_ast_passes/ast_validation.rs
@@ -1291,6 +1291,8 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
1291
}
1292
1293
1294
+/// When encountering an equality constraint in a `where` clause, emit an error. If the code seems
1295
+/// like it's setting an associated type, provide an appropriate suggestion.
1296
fn deny_equality_constraints(
1297
this: &mut AstValidator<'_>,
1298
predicate: &WhereEqPredicate,
0 commit comments