Fix unstable book example
This commit is contained in:
parent
eb143c344e
commit
22ca03bde6
@ -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"),
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user