rust/tests/ui/or-patterns/issue-69875-should-have-been-expanded-earlier.rs
2024-02-16 20:02:50 +00:00

8 lines
125 B
Rust

//@ check-pass
fn main() {
let (0 | (1 | _)) = 0;
if let 0 | (1 | 2) = 0 {}
if let x @ 0 | x @ (1 | 2) = 0 {}
}