Skip to content

Commit 4861603

Browse files
committed
stabilize Box::leak: remove #![feature(box_leak)] in docs
1 parent 467b5cf commit 4861603

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/liballoc/boxed.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,6 @@ impl<T: ?Sized> Box<T> {
359359
/// Simple usage:
360360
///
361361
/// ```
362-
/// #![feature(box_leak)]
363-
///
364362
/// fn main() {
365363
/// let x = Box::new(41);
366364
/// let static_ref: &'static mut usize = Box::leak(x);
@@ -372,8 +370,6 @@ impl<T: ?Sized> Box<T> {
372370
/// Unsized data:
373371
///
374372
/// ```
375-
/// #![feature(box_leak)]
376-
///
377373
/// fn main() {
378374
/// let x = vec![1, 2, 3].into_boxed_slice();
379375
/// let static_ref = Box::leak(x);

0 commit comments

Comments
 (0)