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 18e5b2f commit 1cfeb56Copy full SHA for 1cfeb56
src/librustc_parse/parser/ty.rs
@@ -448,6 +448,8 @@ impl<'a> Parser<'a> {
448
self.error_opt_out_lifetime(question);
449
let bound = GenericBound::Outlives(self.expect_lifetime());
450
if has_parens {
451
+ // FIXME(Centril): Consider not erroring here and accepting `('lt)` instead,
452
+ // possibly introducing `GenericBound::Paren(P<GenericBound>)`?
453
self.recover_paren_lifetime(lo, inner_lo)?;
454
}
455
Ok(Ok(bound))
0 commit comments