Improve suggestion for calling closure on type mismatch
This commit is contained in:
parent
dc80ca78b6
commit
d15fed79b8
11 changed files with 143 additions and 125 deletions
|
@ -856,7 +856,7 @@ pub trait PrettyPrinter<'tcx>:
|
|||
p!(")");
|
||||
if let Term::Ty(ty) = return_ty.skip_binder() {
|
||||
if !ty.is_unit() {
|
||||
p!("-> ", print(return_ty));
|
||||
p!(" -> ", print(return_ty));
|
||||
}
|
||||
}
|
||||
p!(write("{}", if paren_needed { ")" } else { "" }));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue