]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-pat-follow-2018.rs
Rollup merge of #79815 - XAMPPRocky:relnotes-1.49.0, r=Mark-Simulacrum
[rust.git] / src / test / ui / macros / macro-pat-follow-2018.rs
1 // run-pass
2 // edition:2018
3
4 macro_rules! pat_bar {
5     ($p:pat | $p2:pat) => {{
6         match Some(1u8) {
7             $p | $p2 => {}
8             _ => {}
9         }
10     }};
11 }
12
13 fn main() {
14     pat_bar!(Some(1u8) | None);
15 }