about summary refs log tree commit diff
path: root/tests/ui/redundant_pattern_matching_option.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/redundant_pattern_matching_option.rs')
-rw-r--r--tests/ui/redundant_pattern_matching_option.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/redundant_pattern_matching_option.rs b/tests/ui/redundant_pattern_matching_option.rs
index 0b69e13f655..d6429426573 100644
--- a/tests/ui/redundant_pattern_matching_option.rs
+++ b/tests/ui/redundant_pattern_matching_option.rs
@@ -63,6 +63,8 @@ fn main() {
     } else {
         3
     };
+
+    if let Some(..) = gen_opt() {}
 }
 
 fn gen_opt() -> Option<()> {