1
Fork 0

Reflect by-value object safety in the unstable book.

This commit is contained in:
Masaki Hara 2018-09-13 22:24:19 +09:00
parent 4ce35fdd34
commit 7ccf661524

View file

@ -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<dyn FnOnce>`, instead of `Box<dyn FnBox>` in the future. See [#28796] for details.
[#28796]: https://github.com/rust-lang/rust/issues/28796