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 a5dc83d commit 812ace6Copy full SHA for 812ace6
src/libsyntax/parse/parser.rs
@@ -1546,7 +1546,7 @@ impl<'a> Parser<'a> {
1546
1547
if ts.len() == 1 && !last_comma {
1548
let ty = ts.into_iter().nth(0).unwrap().into_inner();
1549
- let maybe_bounds = allow_plus && self.check_plus();
+ let maybe_bounds = allow_plus && self.token.is_like_plus();
1550
match ty.node {
1551
// `(TY_BOUND_NOPAREN) + BOUND + ...`.
1552
TyKind::Path(None, ref path) if maybe_bounds => {
0 commit comments