Skip to content

Commit 72e3c50

Browse files
committed
Clarify one of the Alternatives Considered
1 parent e06bc45 commit 72e3c50

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

proposals/NNNN-non-escapable.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,10 @@ struct Box<T> {
338338
extension Box: NonEscapable when T: NonEscapable { }
339339
```
340340

341-
However, we felt it best to stick with the precedent set by `~Copyable`.
341+
However, this would imply that any `NonEscapable` type was a
342+
subtype of `Any` and could therefore be placed within an `Any` existential box.
343+
An `Any` existential box is both `Copyable` and `Escapable`,
344+
so it cannot be allowed to contain a non-escapable value.
342345

343346
#### Rely on `~Copyable`
344347

0 commit comments

Comments
 (0)