]> git.lizzy.rs Git - rust.git/blobdiff - src/liballoc/boxed.rs
Auto merge of #28651 - dotdash:exhaustive_match, r=eddyb
[rust.git] / src / liballoc / boxed.rs
index 47405b76feac4857fa1f50ce2466ba0269ab62e6..1529187da064c05550974edc92755fdb91ead193 100644 (file)
 /// 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")]