diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2015-09-24 18:00:08 +0300 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2015-09-24 18:00:08 +0300 |
| commit | f293ea28b4beb5821feedc862619ec539f742cc3 (patch) | |
| tree | 4dae59234f4962fa2952b70995967c4792287a52 /src/liballoc | |
| parent | 07ca1ab1ec32ac99a61312ec07d66db5f3657040 (diff) | |
| download | rust-f293ea28b4beb5821feedc862619ec539f742cc3.tar.gz rust-f293ea28b4beb5821feedc862619ec539f742cc3.zip | |
Remove the deprecated box(PLACE) syntax.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/boxed.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 4293b4765e1..3239677fc0c 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -80,11 +80,10 @@ use core::raw::{TraitObject}; /// use std::boxed::HEAP; /// /// fn main() { -/// let foo = box(HEAP) 5; +/// let foo: Box<i32> = in HEAP { 5 }; /// let foo = box 5; /// } /// ``` -#[lang = "exchange_heap"] #[unstable(feature = "box_heap", reason = "may be renamed; uncertain about custom allocator design", issue = "27779")] |
