diff options
Diffstat (limited to 'src/comp/syntax/parse/parser.rs')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index f0b25eb9a53..133b3c41bc7 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -597,6 +597,8 @@ fn parse_arg(p: &parser) -> ast::arg { expect(p, token::COLON); if eat(p, token::BINOP(token::AND)) { m = ast::alias(eat_word(p, "mutable")); + } else if eat(p, token::BINOP(token::MINUS)) { + m = ast::move; } let t: @ast::ty = parse_ty(p); ret {mode: m, ty: t, ident: i, id: p.get_id()}; |
