Fix unstable book example

This commit is contained in:
Matt Ickstadt 2017-09-01 16:16:36 -05:00
parent eb143c344e
commit 22ca03bde6
1 changed files with 4 additions and 2 deletions

View File

@ -8,12 +8,14 @@ match arm:
```rust
#![feature(match_beginning_vert)]
enum Foo { A, B }
enum Foo { A, B, C }
fn main() {
let x = Foo::A;
match x {
| A | B => {},
| Foo::A
| Foo::B => println!("AB"),
| Foo::C => println!("C"),
}
}
```