rust/tests/ui/match/guards-parenthesized-and.rs

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

11 lines
165 B
Rust
Raw Normal View History

2023-04-30 09:08:26 -05:00
// check-pass
fn main() {
let c = 1;
let w = "T";
match Some(5) {
None if c == 1 && (w != "Y" && w != "E") => {}
_ => panic!(),
}
}