parent
be1feaa918
commit
865dcb663d
6 changed files with 18 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue