We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Span
TraitBoundModifier
1 parent c043d01 commit 24ce52aCopy full SHA for 24ce52a
src/types.rs
@@ -546,7 +546,7 @@ impl Rewrite for ast::GenericBound {
546
ast::TraitBoundModifier::Maybe => poly_trait_ref
547
.rewrite(context, shape.offset_left(1)?)
548
.map(|s| format!("?{}", s)),
549
- ast::TraitBoundModifier::MaybeConst => poly_trait_ref
+ ast::TraitBoundModifier::MaybeConst(_) => poly_trait_ref
550
.rewrite(context, shape.offset_left(7)?)
551
.map(|s| format!("~const {}", s)),
552
ast::TraitBoundModifier::MaybeConstMaybe => poly_trait_ref
0 commit comments