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.
1 parent 024757f commit c7a21feCopy full SHA for c7a21fe
1 file changed
compiler/rustc_parse/src/parser/generics.rs
@@ -595,6 +595,7 @@ impl<'a> Parser<'a> {
595
// FIXME: We are just dropping the binders in lifetime_defs on the floor here.
596
} else if self.eat(exp!(Eq)) || self.eat(exp!(EqEq)) {
597
let rhs_ty = self.parse_ty()?;
598
+ self.dcx().span_err(ty.span.to(rhs_ty.span), "[[[ equality predicate ]]]");
599
Ok(ast::WherePredicateKind::EqPredicate(ast::WhereEqPredicate { lhs_ty: ty, rhs_ty }))
600
} else {
601
self.maybe_recover_bounds_doubled_colon(&ty)?;
0 commit comments