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 d6d30cc commit a72f39fCopy full SHA for a72f39f
compiler/rustc_parse/src/parser/pat.rs
@@ -754,6 +754,7 @@ impl<'a> Parser<'a> {
754
755
fn parse_pat_range_end(&mut self) -> PResult<'a, P<Expr>> {
756
if self.check_inline_const(0) {
757
+ self.eat_keyword(kw::Const);
758
self.parse_const_block(self.token.span)
759
} else if self.check_path() {
760
let lo = self.token.span;
0 commit comments