rustc: Parse and typecheck unique pointers
This commit is contained in:
parent
5c6790519b
commit
af61daf294
7 changed files with 14 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue