rustc: Parse and typecheck unique pointers

This commit is contained in:
Patrick Walton 2011-08-15 14:36:52 -07:00
parent 5c6790519b
commit af61daf294
7 changed files with 14 additions and 1 deletions

View file

@ -870,7 +870,7 @@ fn parse_bottom_expr(p: &parser) -> @ast::expr {
span: p.get_span()};
ex = ast::expr_lit(lit);
}
_ { p.fatal("unimplemented: unique pointer creation"); }
_ { ex = ast::expr_uniq(parse_expr(p)); }
}
} else if (eat_word(p, "obj")) {
// Anonymous object