stabilize Box::leak: remove #![feature(box_leak)] in docs

This commit is contained in:
Mazdak Farrokhzad 2018-02-10 01:39:22 +01:00
parent 467b5cfcb7
commit 486160335c

View File

@ -359,8 +359,6 @@ impl<T: ?Sized> Box<T> {
/// Simple usage:
///
/// ```
/// #![feature(box_leak)]
///
/// fn main() {
/// let x = Box::new(41);
/// let static_ref: &'static mut usize = Box::leak(x);
@ -372,8 +370,6 @@ impl<T: ?Sized> Box<T> {
/// Unsized data:
///
/// ```
/// #![feature(box_leak)]
///
/// fn main() {
/// let x = vec![1, 2, 3].into_boxed_slice();
/// let static_ref = Box::leak(x);