]> git.lizzy.rs Git - rust.git/blob - src/doc/unstable-book/src/language-features/match-beginning-vert.md
Unimplement Send/Sync for ::env::{Args,ArgsOs,Vars,VarsOs}
[rust.git] / src / doc / unstable-book / src / language-features / match-beginning-vert.md
1 # `match_beginning_vert`
2
3 The tracking issue for this feature is [#44101].
4
5 With this feature enabled, you are allowed to add a '|' to the beginning of a
6 match arm:
7
8 ```rust
9 #![feature(match_beginning_vert)]
10
11 enum Foo { A, B, C }
12
13 fn main() {
14     let x = Foo::A;
15     match x {
16         | Foo::A 
17         | Foo::B => println!("AB"),
18         | Foo::C => println!("C"),
19     }
20 }
21 ```
22
23 [#44101]: https://github.com/rust-lang/rust/issues/44101