diff options
author | Benjamin Coenen <[email protected]> | 2020-08-13 21:13:34 +0100 |
---|---|---|
committer | Benjamin Coenen <[email protected]> | 2020-08-13 21:13:34 +0100 |
commit | 947a27b797cd87d5650477441c9c3c03b6364626 (patch) | |
tree | 3df99a280caea5274d00ff860a4e9f6b16419eb2 /crates/hir_ty/src | |
parent | 3d6fd620e80050d68e6da55aabad2ca780ba2323 (diff) |
display correctly 'impl Trait<T> + Trait<T>' #4814
Signed-off-by: Benjamin Coenen <[email protected]>
Diffstat (limited to 'crates/hir_ty/src')
-rw-r--r-- | crates/hir_ty/src/display.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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( | |||
511 | GenericPredicate::Implemented(trait_ref) => { | 511 | GenericPredicate::Implemented(trait_ref) => { |
512 | if angle_open { | 512 | if angle_open { |
513 | write!(f, ">")?; | 513 | write!(f, ">")?; |
514 | angle_open = false; | ||
514 | } | 515 | } |
515 | if !first { | 516 | if !first { |
516 | write!(f, " + ")?; | 517 | write!(f, " + ")?; |