Skip to content

Commit f194518

Browse files
committed
Fix unstable-book doc tests
1 parent 1143daa commit f194518

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ This implements [RFC1909]. When turned on, you can have unsized arguments and lo
1111
[RFC1909]: https://github.com/rust-lang/rfcs/blob/master/text/1909-unsized-rvalues.md
1212

1313
```rust
14-
#![feature(unsized_locals)]
14+
#![allow(incomplete_features)]
15+
#![feature(unsized_locals, unsized_fn_params)]
1516

1617
use std::any::Any;
1718

@@ -85,7 +86,7 @@ fn main() {
8586
With this feature, you can have by-value `self` arguments without `Self: Sized` bounds.
8687

8788
```rust
88-
#![feature(unsized_locals)]
89+
#![feature(unsized_fn_params)]
8990

9091
trait Foo {
9192
fn foo(self) {}
@@ -102,7 +103,7 @@ fn main() {
102103
And `Foo` will also be object-safe.
103104

104105
```rust
105-
#![feature(unsized_locals)]
106+
#![feature(unsized_fn_params)]
106107

107108
trait Foo {
108109
fn foo(self) {}

0 commit comments

Comments
 (0)