We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e06bc45 commit 72e3c50Copy full SHA for 72e3c50
proposals/NNNN-non-escapable.md
@@ -338,7 +338,10 @@ struct Box<T> {
338
extension Box: NonEscapable when T: NonEscapable { }
339
```
340
341
-However, we felt it best to stick with the precedent set by `~Copyable`.
+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.
345
346
#### Rely on `~Copyable`
347
0 commit comments