1
Fork 0

Add pattern types to parser

This commit is contained in:
Oli Scherer 2023-01-31 11:35:23 +00:00
parent fc27a91880
commit c340e67dec
14 changed files with 167 additions and 0 deletions

View file

@ -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)