This commit is contained in:
Ralf Jung 2018-08-02 00:14:51 +02:00
parent 27bfe2c288
commit 1e08ea2411
1 changed files with 1 additions and 3 deletions

View File

@ -93,14 +93,12 @@ impl<T> Deref for ManuallyDrop<T> {
impl<T> DerefMut for ManuallyDrop<T> {
// ...
}
// Other common impls such as `Debug for T: Debug`.
```
The lang item will be treated specially by the compiler to not emit any drop
glue for this type.
Let us apply this union to a somewhat expanded example from the motivation:
Let us apply `ManuallyDrop` to a somewhat expanded example from the motivation:
```rust
struct FruitBox {