diff options
Diffstat (limited to 'tests/ui/match/guards-parenthesized-and.rs')
-rw-r--r-- | tests/ui/match/guards-parenthesized-and.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/match/guards-parenthesized-and.rs b/tests/ui/match/guards-parenthesized-and.rs new file mode 100644 index 000000000..3a1c341f3 --- /dev/null +++ b/tests/ui/match/guards-parenthesized-and.rs @@ -0,0 +1,10 @@ +// check-pass + +fn main() { + let c = 1; + let w = "T"; + match Some(5) { + None if c == 1 && (w != "Y" && w != "E") => {} + _ => panic!(), + } +} |