print_ident(s, segment.identifier);
- if segment.lifetime.is_some() || !segment.types.is_empty() {
- // If this is the last segment, print the bounds.
- if i == path.segments.len() - 1 {
- match *opt_bounds {
- None => {}
- Some(ref bounds) => print_bounds(s, bounds, true),
- }
+ // If this is the last segment, print the bounds.
+ if i == path.segments.len() - 1 {
+ match *opt_bounds {
+ None => {}
+ Some(ref bounds) => print_bounds(s, bounds, true),
}
+ }
+ if segment.lifetime.is_some() || !segment.types.is_empty() {
if colons_before_params {
word(s.s, "::")
}
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-// xfail-pretty #9253 pretty printer doesn't preserve the bounds on trait objects
-
/*
#7673 Polymorphically creating traits barely works