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 31531b3 commit 79c4727Copy full SHA for 79c4727
1 file changed
compiler/rustc_parse/src/parser/item.rs
@@ -408,6 +408,7 @@ impl<'a> Parser<'a> {
408
let insert_span = ident_span.shrink_to_lo();
409
410
let ident = if self.token.is_ident()
411
+ && self.token.is_non_reserved_ident()
412
&& (!is_const || self.look_ahead(1, |t| *t == token::OpenParen))
413
&& self.look_ahead(1, |t| {
414
matches!(t.kind, token::Lt | token::OpenBrace | token::OpenParen)
0 commit comments