Skip to content

Commit 6c66e11

Browse files
committed
The static keyword can now begin expressions
1 parent 5647356 commit 6c66e11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libsyntax/parse/token.rs

+1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ fn ident_can_begin_expr(ident: ast::Ident) -> bool {
112112
keywords::Unsafe.name(),
113113
keywords::While.name(),
114114
keywords::Yield.name(),
115+
keywords::Static.name(),
115116
].contains(&ident.name)
116117
}
117118

0 commit comments

Comments
 (0)