Parse ! as TyEmpty (except in fn return type)

This commit is contained in:
Andrew Cann 2016-06-22 14:02:26 +08:00
parent ba7330c1cc
commit b0a9acd783

View File

@ -1399,6 +1399,8 @@ impl<'a> Parser<'a> {
} else {
TyKind::Tup(ts)
}
} else if self.eat(&token::Not) {
TyKind::Empty
} else if self.check(&token::BinOp(token::Star)) {
// STAR POINTER (bare pointer?)
self.bump();