Support ?Trait bounds in supertraits and dyn Trait under a feature gate
This commit is contained in:
@@ -300,13 +300,16 @@ impl<'a> State<'a> {
|
||||
self.word_space("dyn");
|
||||
}
|
||||
let mut first = true;
|
||||
for bound in bounds {
|
||||
for (bound, modifier) in bounds {
|
||||
if first {
|
||||
first = false;
|
||||
} else {
|
||||
self.nbsp();
|
||||
self.word_space("+");
|
||||
}
|
||||
if *modifier == TraitBoundModifier::Maybe {
|
||||
self.word("?");
|
||||
}
|
||||
self.print_poly_trait_ref(bound);
|
||||
}
|
||||
if !lifetime.is_elided() {
|
||||
|
||||
Reference in New Issue
Block a user