We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e8517d commit 7cafefeCopy full SHA for 7cafefe
compiler/rustc_parse/src/parser/diagnostics.rs
@@ -1286,14 +1286,13 @@ impl<'a> Parser<'a> {
1286
}
1287
1288
self.bump(); // `+`
1289
+ let bounds = self.parse_generic_bounds(None)?;
1290
let sum_span = ty.span.to(self.prev_token.span);
1291
1292
let sum_with_parens: String;
1293
1294
let sub = match ty.kind {
1295
TyKind::Rptr(ref lifetime, ref mut_ty) => {
- let bounds = self.parse_generic_bounds(None)?;
1296
-
1297
sum_with_parens = pprust::to_string(|s| {
1298
s.s.word("&");
1299
s.print_opt_lifetime(lifetime);
0 commit comments