Skip to content

Commit 64c0773

Browse files
oli-obkTimNN
andauthored
Clarify Destruct rules
Co-authored-by: Tim Neumann <mail@timnn.me>
1 parent ff7fabe commit 64c0773

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/0000-const-trait-impls.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ This situation seems no different from other trait bounds, except that types can
274274

275275
The `Destruct` trait is a bound for whether a type has drop glue. This is trivally true for all types.
276276

277-
`~const Destruct` trait bounds are satsifed only if the type has a `const Drop` impl or all of the types of its components
278-
are `~const Destruct`.
277+
`~const Destruct` trait bounds are satisfied only if the type's `Drop` impl (if any) is `const` and all of the types of
278+
its components are `~const Destruct`.
279279

280280
While this means that it's a breaking change to add a type with a non-const `Drop` impl to a type,
281281
that's already true and nothing new:

0 commit comments

Comments
 (0)