about summary refs log tree commit diff
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2023-02-27 13:18:13 +0000
committerclubby789 <jamie@hill-daniel.co.uk>2023-03-12 13:19:46 +0000
commita8d5950b4db8feddff469d6c35a8f29f485ce951 (patch)
tree188d223db0a958a6b2aeb38b0024aa042feac690
parent0932452fa40178b6f8b93a2bab3b4ead4e2bb560 (diff)
downloadrust-a8d5950b4db8feddff469d6c35a8f29f485ce951.tar.gz
rust-a8d5950b4db8feddff469d6c35a8f29f485ce951.zip
Remove `box-syntax` from unstable book
-rw-r--r--src/doc/unstable-book/src/language-features/box-syntax.md22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/doc/unstable-book/src/language-features/box-syntax.md b/src/doc/unstable-book/src/language-features/box-syntax.md
deleted file mode 100644
index 9569974d22c..00000000000
--- a/src/doc/unstable-book/src/language-features/box-syntax.md
+++ /dev/null
@@ -1,22 +0,0 @@
-# `box_syntax`
-
-The tracking issue for this feature is: [#49733]
-
-[#49733]: https://github.com/rust-lang/rust/issues/49733
-
-See also [`box_patterns`](box-patterns.md)
-
-------------------------
-
-Currently the only stable way to create a `Box` is via the `Box::new` method.
-Also it is not possible in stable Rust to destructure a `Box` in a match
-pattern. The unstable `box` keyword can be used to create a `Box`. An example
-usage would be:
-
-```rust
-#![feature(box_syntax)]
-
-fn main() {
-    let b = box 5;
-}
-```