Skip to content

Commit 7ccf661

Browse files
committed
Reflect by-value object safety in the unstable book.
1 parent 4ce35fd commit 7ccf661

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/doc/unstable-book/src/language-features/unsized-locals.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ fn main() {
101101
}
102102
```
103103

104-
And `Foo` will also be object-safe. However, this object-safety is not yet implemented.
104+
And `Foo` will also be object-safe.
105105

106-
```rust,ignore
106+
```rust
107107
#![feature(unsized_locals)]
108108

109109
trait Foo {
@@ -119,8 +119,6 @@ fn main () {
119119
}
120120
```
121121

122-
Unfortunately, this is not implemented yet.
123-
124122
One of the objectives of this feature is to allow `Box<dyn FnOnce>`, instead of `Box<dyn FnBox>` in the future. See [#28796] for details.
125123

126124
[#28796]: https://github.com/rust-lang/rust/issues/28796

0 commit comments

Comments
 (0)