diff options
| -rw-r--r-- | src/types.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/types.rs b/src/types.rs index 01e2fb6e61e..9ebe38cc25f 100644 --- a/src/types.rs +++ b/src/types.rs @@ -552,6 +552,8 @@ impl Rewrite for ast::GenericBound { ast::TraitBoundModifier::MaybeConstMaybe => poly_trait_ref .rewrite(context, shape.offset_left(8)?) .map(|s| format!("~const ?{}", s)), + rustc_ast::TraitBoundModifier::Negative + | rustc_ast::TraitBoundModifier::MaybeConstNegative => None, }; rewrite.map(|s| if has_paren { format!("({})", s) } else { s }) } |
