Skip to content

Commit 982b51d

Browse files
committed
trait interaction
1 parent c147c8a commit 982b51d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

text/0000-maybe-dangling.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ As long as the `buffer` field is not used, the pointer stored in `ref_` will rem
124124
[reference-level-explanation]: #reference-level-explanation
125125

126126
The standard library contains a type `MaybeDangling<P>` that is safely convertible with `P` (i.e., the safety invariant is the same), and that has all the same niches as `P`, but that does allow passing around dangling boxes and references within unsafe code.
127+
`MaybeDangling` propagates auto traits and has (at least) `derive(Copy, Clone, Debug)`.
127128

128129
"Behavior considered undefined" is adjusted as follows:
129130

0 commit comments

Comments
 (0)