We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 467b5cf commit 4861603Copy full SHA for 4861603
src/liballoc/boxed.rs
@@ -359,8 +359,6 @@ impl<T: ?Sized> Box<T> {
359
/// Simple usage:
360
///
361
/// ```
362
- /// #![feature(box_leak)]
363
- ///
364
/// fn main() {
365
/// let x = Box::new(41);
366
/// let static_ref: &'static mut usize = Box::leak(x);
@@ -372,8 +370,6 @@ impl<T: ?Sized> Box<T> {
372
370
/// Unsized data:
373
371
374
375
376
377
378
/// let x = vec![1, 2, 3].into_boxed_slice();
379
/// let static_ref = Box::leak(x);
0 commit comments