Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions compiler/rustc_parse/src/parser/generics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@ impl<'a> Parser<'a> {
// FIXME: We are just dropping the binders in lifetime_defs on the floor here.
} else if self.eat(exp!(Eq)) || self.eat(exp!(EqEq)) {
let rhs_ty = self.parse_ty()?;
self.dcx().span_err(ty.span.to(rhs_ty.span), "[[[ equality predicate ]]]");
Ok(ast::WherePredicateKind::EqPredicate(ast::WhereEqPredicate { lhs_ty: ty, rhs_ty }))
} else {
self.maybe_recover_bounds_doubled_colon(&ty)?;
Expand Down
Loading