From 7ccf66152400403da56ef56d29a454c981c85d3a Mon Sep 17 00:00:00 2001 From: Masaki Hara Date: Thu, 13 Sep 2018 22:24:19 +0900 Subject: [PATCH] Reflect by-value object safety in the unstable book. --- .../unstable-book/src/language-features/unsized-locals.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/doc/unstable-book/src/language-features/unsized-locals.md b/src/doc/unstable-book/src/language-features/unsized-locals.md index 7a5fe5b7f28c..6f7cf754ae08 100644 --- a/src/doc/unstable-book/src/language-features/unsized-locals.md +++ b/src/doc/unstable-book/src/language-features/unsized-locals.md @@ -101,9 +101,9 @@ fn main() { } ``` -And `Foo` will also be object-safe. However, this object-safety is not yet implemented. +And `Foo` will also be object-safe. -```rust,ignore +```rust #![feature(unsized_locals)] trait Foo { @@ -119,8 +119,6 @@ fn main () { } ``` -Unfortunately, this is not implemented yet. - One of the objectives of this feature is to allow `Box`, instead of `Box` in the future. See [#28796] for details. [#28796]: https://github.com/rust-lang/rust/issues/28796