Add missing import to Rc

This commit is contained in:
Leon Matthes 2020-08-01 23:51:55 +02:00
parent a9af93beeb
commit 41d3e1cf73

View File

@ -594,6 +594,7 @@ mod prim_array {}
/// [dynamically sized types](../reference/dynamically-sized-types.html).
///
/// ```
/// # use std::rc::Rc;
/// let pointer_size = std::mem::size_of::<&u8>();
/// assert_eq!(2 * pointer_size, std::mem::size_of::<&[u8]>());
/// assert_eq!(2 * pointer_size, std::mem::size_of::<*const [u8]>());