Skip to content

Commit ff56e37

Browse files
committed
opt into box_patterns in the reference doc that uses them.
1 parent edabfe2 commit ff56e37

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/doc/reference.md

+3
Original file line numberDiff line numberDiff line change
@@ -3196,6 +3196,7 @@ stands for a *single* data field, whereas a wildcard `..` stands for *all* the
31963196
fields of a particular variant. For example:
31973197

31983198
```
3199+
#![feature(box_patterns)]
31993200
#![feature(box_syntax)]
32003201
enum List<X> { Nil, Cons(X, Box<List<X>>) }
32013202
@@ -3259,6 +3260,7 @@ the inside of the match.
32593260
An example of a `match` expression:
32603261

32613262
```
3263+
#![feature(box_patterns)]
32623264
#![feature(box_syntax)]
32633265
# fn process_pair(a: i32, b: i32) { }
32643266
# fn process_ten() { }
@@ -3294,6 +3296,7 @@ Subpatterns can also be bound to variables by the use of the syntax `variable @
32943296
subpattern`. For example:
32953297

32963298
```
3299+
#![feature(box_patterns)]
32973300
#![feature(box_syntax)]
32983301
32993302
enum List { Nil, Cons(uint, Box<List>) }

0 commit comments

Comments
 (0)