commit | e8796aaa283944e283e3837e215539639c077874 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sun Sep 04 14:48:22 2016 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Sun Sep 04 14:48:22 2016 -0700 |
tree | fb1884e8199d84b3589dcbdfa4bee0b8c08243e7 | |
parent | f69904a40d5b7f7fdf7caf623fa323094a290e6e [diff] [blame] |
Fix printing of PolyTraitRef
diff --git a/src/ty.rs b/src/ty.rs index 0145851..ac680fe 100644 --- a/src/ty.rs +++ b/src/ty.rs
@@ -595,6 +595,7 @@ impl ToTokens for PolyTraitRef { fn to_tokens(&self, tokens: &mut Tokens) { if !self.bound_lifetimes.is_empty() { + tokens.append("for"); tokens.append("<"); tokens.append_separated(&self.bound_lifetimes, ","); tokens.append(">");