diff --git a/src/types.rs b/src/types.rs index 311192889d3..8c8627d7a71 100644 --- a/src/types.rs +++ b/src/types.rs @@ -652,7 +652,7 @@ impl Rewrite for ast::TraitRef { impl Rewrite for ast::Ty { fn rewrite(&self, context: &RewriteContext, shape: Shape) -> Option { match self.node { - ast::TyKind::TraitObject(ref bounds) => bounds.rewrite(context, shape), + ast::TyKind::TraitObject(ref bounds, ..) => bounds.rewrite(context, shape), ast::TyKind::Ptr(ref mt) => { let prefix = match mt.mutbl { Mutability::Mutable => "*mut ",