From 947a27b797cd87d5650477441c9c3c03b6364626 Mon Sep 17 00:00:00 2001 From: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> Date: Thu, 13 Aug 2020 22:13:34 +0200 Subject: display correctly 'impl Trait + Trait' #4814 Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> --- crates/hir_ty/src/display.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/hir_ty/src') diff --git a/crates/hir_ty/src/display.rs b/crates/hir_ty/src/display.rs index 19770e609..64b68014d 100644 --- a/crates/hir_ty/src/display.rs +++ b/crates/hir_ty/src/display.rs @@ -511,6 +511,7 @@ fn write_bounds_like_dyn_trait( GenericPredicate::Implemented(trait_ref) => { if angle_open { write!(f, ">")?; + angle_open = false; } if !first { write!(f, " + ")?; -- cgit v1.2.3