The static keyword can now begin expressions

This commit is contained in:
John Kåre Alsaker 2018-01-29 10:53:20 +01:00
parent 56473562c5
commit 6c66e11ff8

View file

@ -112,6 +112,7 @@ fn ident_can_begin_expr(ident: ast::Ident) -> bool {
keywords::Unsafe.name(),
keywords::While.name(),
keywords::Yield.name(),
keywords::Static.name(),
].contains(&ident.name)
}