Add pattern types to parser
This commit is contained in:
parent
fc27a91880
commit
c340e67dec
14 changed files with 167 additions and 0 deletions
|
@ -332,6 +332,9 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
|
|||
ast::TyKind::Never => {
|
||||
gate!(&self, never_type, ty.span, "the `!` type is experimental");
|
||||
}
|
||||
ast::TyKind::Pat(..) => {
|
||||
gate!(&self, pattern_types, ty.span, "pattern types are unstable");
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
visit::walk_ty(self, ty)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue