about summary refs log tree commit diff
path: root/tests/source/expr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/source/expr.rs')
-rw-r--r--tests/source/expr.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/source/expr.rs b/tests/source/expr.rs
index 26b22ed29be..c5002f5ec15 100644
--- a/tests/source/expr.rs
+++ b/tests/source/expr.rs
@@ -233,3 +233,14 @@ fn blocks() {
         println!("yay arithmetix!");
     };
 }
+
+fn issue767() {
+    if false {
+        if false {
+        } else {
+            // A let binding here seems necessary to trigger it.
+            let _ = ();
+        }
+    } else if let false = false {
+    }
+}