Box docs: no allocation is done for ZSTs.
This commit is contained in:
parent
ee60afa094
commit
edf5dc66c1
@ -225,6 +225,8 @@ impl<T: ?Sized> Drop for IntermediateBox<T> {
|
||||
impl<T> Box<T> {
|
||||
/// Allocates memory on the heap and then places `x` into it.
|
||||
///
|
||||
/// This doesn't actually allocate if `T` is zero-sized.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user