1
Fork 0
rust/src/test/ui/or-patterns/inner-or-pat.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
298 B
Rust
Raw Normal View History

2022-06-17 16:34:00 +03:00
// run-pass
#[allow(unused_variables)]
#[allow(unused_parens)]
fn main() {
let x = "foo";
match x {
x @ ((("h" | "ho" | "yo" | ("dude" | "w")) | "no" | "nop") | ("hey" | "gg")) |
x @ ("black" | "pink") |
x @ ("red" | "blue") => {
}
_ => (),
}
}