summaryrefslogtreecommitdiff
path: root/tests/ui/match/guards-parenthesized-and.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/match/guards-parenthesized-and.rs')
-rw-r--r--tests/ui/match/guards-parenthesized-and.rs10
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 00000000000..3a1c341f3ee
--- /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!(),
+ }
+}