diff --git a/src/types.rs b/src/types.rs index 7f220a456a8ee..10a87f6e69850 100644 --- a/src/types.rs +++ b/src/types.rs @@ -867,6 +867,11 @@ impl Rewrite for ast::Ty { self.span, shape, ), + ast::TyKind::Pat(ref ty, ref pat) => { + let ty = ty.rewrite(context, shape)?; + let pat = pat.rewrite(context, shape)?; + Some(format!("{ty} is {pat}")) + } } } }