提交 b0a9acd7 编写于 作者: A Andrew Cann

Parse `!` as TyEmpty (except in fn return type)

上级 ba7330c1
......@@ -1399,6 +1399,8 @@ pub fn parse_ty(&mut self) -> PResult<'a, P<Ty>> {
} 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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册