diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2020-05-24 17:22:41 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2020-10-27 14:45:35 -0300 |
| commit | 1b7d0b22c08717e285fbb1acfdb160e30e6cc085 (patch) | |
| tree | ac418c2fcc20f9665cc38e26e8e8490402417d6d | |
| parent | d57d3f300a2e36c0889e35e5954c620387232fa0 (diff) | |
| download | rust-1b7d0b22c08717e285fbb1acfdb160e30e6cc085.tar.gz rust-1b7d0b22c08717e285fbb1acfdb160e30e6cc085.zip | |
Fix unstable-book doc tests
| -rw-r--r-- | src/doc/unstable-book/src/language-features/unsized-locals.md | 7 |
1 files changed, 4 insertions, 3 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 343084b7db5..d716b1d51dc 100644 --- a/src/doc/unstable-book/src/language-features/unsized-locals.md +++ b/src/doc/unstable-book/src/language-features/unsized-locals.md @@ -11,7 +11,8 @@ This implements [RFC1909]. When turned on, you can have unsized arguments and lo [RFC1909]: https://github.com/rust-lang/rfcs/blob/master/text/1909-unsized-rvalues.md ```rust -#![feature(unsized_locals)] +#![allow(incomplete_features)] +#![feature(unsized_locals, unsized_fn_params)] use std::any::Any; @@ -85,7 +86,7 @@ fn main() { With this feature, you can have by-value `self` arguments without `Self: Sized` bounds. ```rust -#![feature(unsized_locals)] +#![feature(unsized_fn_params)] trait Foo { fn foo(self) {} @@ -102,7 +103,7 @@ fn main() { And `Foo` will also be object-safe. ```rust -#![feature(unsized_locals)] +#![feature(unsized_fn_params)] trait Foo { fn foo(self) {} |
