Skip to content

Commit 1cfeb56

Browse files
committed
parse_generic_bound: leave a FIXME
1 parent 18e5b2f commit 1cfeb56

File tree

1 file changed

+2
-0
lines changed
  • src/librustc_parse/parser

1 file changed

+2
-0
lines changed

src/librustc_parse/parser/ty.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,8 @@ impl<'a> Parser<'a> {
448448
self.error_opt_out_lifetime(question);
449449
let bound = GenericBound::Outlives(self.expect_lifetime());
450450
if has_parens {
451+
// FIXME(Centril): Consider not erroring here and accepting `('lt)` instead,
452+
// possibly introducing `GenericBound::Paren(P<GenericBound>)`?
451453
self.recover_paren_lifetime(lo, inner_lo)?;
452454
}
453455
Ok(Ok(bound))

0 commit comments

Comments
 (0)