Skip to content

Commit

Permalink
stabilize Box::leak: remove #![feature(box_leak)] in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Feb 10, 2018
1 parent 467b5cf commit 4861603
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/liballoc/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 4861603

Please sign in to comment.