]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/parse/token.rs
'label can start expressions
[rust.git] / src / libsyntax / parse / token.rs
index 44394384c7a7ebc4377261da2e82890ab995aea1..938711ca1d495f02cd68e3110956db99a9390ed9 100644 (file)
@@ -277,9 +277,10 @@ pub fn can_begin_expr(&self) -> bool {
             DotDot | DotDotDot | DotDotEq     | // range notation
             Lt | BinOp(Shl)                   | // associated path
             ModSep                            | // global path
+            Lifetime(..)                      | // labeled loop
             Pound                             => true, // expression attributes
             Interpolated(ref nt) => match nt.0 {
-                NtIdent(..) | NtExpr(..) | NtBlock(..) | NtPath(..) => true,
+                NtIdent(..) | NtExpr(..) | NtBlock(..) | NtPath(..) | NtLifetime(..) => true,
                 _ => false,
             },
             _ => false,