Allow try blocks as the argument to return expressions

Fixes 76271
This commit is contained in:
Scott McMurray 2020-09-02 23:39:50 -07:00
parent 51f79b618d
commit 791f93c796
2 changed files with 13 additions and 0 deletions

View file

@ -173,6 +173,7 @@ pub fn ident_can_begin_expr(name: Symbol, span: Span, is_raw: bool) -> bool {
kw::Move,
kw::Return,
kw::True,
kw::Try,
kw::Unsafe,
kw::While,
kw::Yield,