diff --git a/src/types.rs b/src/types.rs index 4cd8e6a703e..7f220a456a8 100644 --- a/src/types.rs +++ b/src/types.rs @@ -859,7 +859,7 @@ fn rewrite(&self, context: &RewriteContext<'_>, shape: Shape) -> Option }) } ast::TyKind::CVarArgs => Some("...".to_owned()), - ast::TyKind::Err => Some(context.snippet(self.span).to_owned()), + ast::TyKind::Dummy | ast::TyKind::Err(_) => Some(context.snippet(self.span).to_owned()), ast::TyKind::Typeof(ref anon_const) => rewrite_call( context, "typeof",