Skip to content

Commit a72f39f

Browse files
committed
Fix bug
1 parent d6d30cc commit a72f39f

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+1
-0
lines changed

compiler/rustc_parse/src/parser/pat.rs

+1
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,7 @@ impl<'a> Parser<'a> {
754754

755755
fn parse_pat_range_end(&mut self) -> PResult<'a, P<Expr>> {
756756
if self.check_inline_const(0) {
757+
self.eat_keyword(kw::Const);
757758
self.parse_const_block(self.token.span)
758759
} else if self.check_path() {
759760
let lo = self.token.span;

0 commit comments

Comments
 (0)