mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 16:15:03 +00:00
stabilize Box::leak: remove #![feature(box_leak)] in docs
This commit is contained in:
parent
467b5cfcb7
commit
486160335c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user