about summary refs log tree commit diff
path: root/tests/ui/redundant_pattern_matching_option.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/redundant_pattern_matching_option.fixed')
-rw-r--r--tests/ui/redundant_pattern_matching_option.fixed2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/redundant_pattern_matching_option.fixed b/tests/ui/redundant_pattern_matching_option.fixed
index 87100b97288..d62f7d26a35 100644
--- a/tests/ui/redundant_pattern_matching_option.fixed
+++ b/tests/ui/redundant_pattern_matching_option.fixed
@@ -54,6 +54,8 @@ fn main() {
     } else {
         3
     };
+
+    if gen_opt().is_some() {}
 }
 
 fn gen_opt() -> Option<()> {