Skip to content

Commit

Permalink
Reflect by-value object safety in the unstable book.
Browse files Browse the repository at this point in the history
  • Loading branch information
qnighy committed Oct 24, 2018
1 parent 4ce35fd commit 7ccf661
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/doc/unstable-book/src/language-features/unsized-locals.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -119,8 +119,6 @@ fn main () {
}
```

Unfortunately, this is not implemented yet.

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.

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

0 comments on commit 7ccf661

Please sign in to comment.