Parse unique box types

Issue #409
This commit is contained in:
Brian Anderson 2011-09-20 16:07:09 -07:00
parent be1feaa918
commit 865dcb663d
6 changed files with 18 additions and 0 deletions

View file

@ -540,6 +540,11 @@ fn parse_ty(p: parser, colons_before_params: bool) -> @ast::ty {
let mt = parse_mt(p);
hi = mt.ty.span.hi;
t = ast::ty_box(mt);
} else if p.peek() == token::TILDE {
p.bump();
let mt = parse_mt(p);
hi = mt.ty.span.hi;
t = ast::ty_uniq(mt);
} else if p.peek() == token::BINOP(token::STAR) {
p.bump();
let mt = parse_mt(p);