]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/collapsible_if.rs
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / collapsible_if.rs
index cd231a5d7abb0852161d0dab921956d654ae73b4..e216a9ee54c90ee959415569eb612f1a8010dfb9 100644 (file)
@@ -155,6 +155,11 @@ fn truth() -> bool { true }
         if matches!(true, true) {}
     }
 
+    // Issue #9375
+    if matches!(true, true) && truth() {
+        if matches!(true, true) {}
+    }
+
     if true {
         #[cfg(not(teehee))]
         if true {