try!(self.print_opt_lifetime(lifetime));
try!(self.print_mt(mt));
}
+ ast::TyKind::Never => {
+ try!(word(&mut self.s, "!"));
+ },
ast::TyKind::Tup(ref elts) => {
try!(self.popen());
try!(self.commasep(Inconsistent, &elts[..],
ast::TyKind::PolyTraitRef(ref bounds) => {
try!(self.print_bounds("", &bounds[..]));
}
+ ast::TyKind::ImplTrait(ref bounds) => {
+ try!(self.print_bounds("impl ", &bounds[..]));
+ }
ast::TyKind::FixedLengthVec(ref ty, ref v) => {
try!(word(&mut self.s, "["));
try!(self.print_type(&ty));
self.maybe_print_comment(ty.span.lo)
}
ast::FunctionRetTy::Default(..) => unreachable!(),
- ast::FunctionRetTy::None(span) => {
- try!(self.word_nbsp("!"));
- self.maybe_print_comment(span.lo)
- }
}
}
try!(self.ibox(INDENT_UNIT));
try!(self.word_space("->"));
match decl.output {
- ast::FunctionRetTy::None(_) =>
- try!(self.word_nbsp("!")),
ast::FunctionRetTy::Default(..) => unreachable!(),
ast::FunctionRetTy::Ty(ref ty) =>
try!(self.print_type(&ty))