rust/src/test/ui/or-patterns/issue-69875-should-have-been-expanded-earlier.rs
2020-03-10 17:46:19 +01:00

10 lines
148 B
Rust

// check-pass
#![feature(or_patterns)]
fn main() {
let 0 | (1 | _) = 0;
if let 0 | (1 | 2) = 0 {}
if let x @ 0 | x @ (1 | 2) = 0 {}
}