diff --git a/src/librustsyntax/print/pprust.rs b/src/librustsyntax/print/pprust.rs index 2eec0ac8797..d0d21ccd6c4 100644 --- a/src/librustsyntax/print/pprust.rs +++ b/src/librustsyntax/print/pprust.rs @@ -1368,6 +1368,10 @@ fn print_fn_block_args(s: ps, decl: ast::fn_decl) { ibox(s, indent_unit); print_arg_mode(s, x.mode); word(s.s, x.ident); + if x.ty.node != ast::ty_infer { + word_space(s, ":"); + print_type(s, x.ty); + } end(s); } commasep(s, inconsistent, decl.inputs, print_arg);