]> git.lizzy.rs Git - rust.git/commitdiff
Add a test fot #2264
authorSeiichi Uchida <seuchida@gmail.com>
Sun, 10 Dec 2017 14:38:30 +0000 (23:38 +0900)
committerSeiichi Uchida <seuchida@gmail.com>
Sun, 10 Dec 2017 14:38:30 +0000 (23:38 +0900)
tests/source/chains-visual.rs
tests/target/chains-visual.rs

index 2fd3622588131b07a50517de694aa588803443b0..466f684088785095d4bbd8c5088e79d43b86a592 100644 (file)
@@ -143,3 +143,17 @@ fn issue1434() {
         })?;
     }
 }
+
+fn issue2264() {
+    {
+        something.function()
+            .map(|| {
+                if let a_very_very_very_very_very_very_very_very_long_variable =
+                    compute_this_variable()
+                {
+                    println!("Hello");
+                }
+            })
+            .collect();
+    }
+}
index 8a6e44ed86bd73d51b9e3c0f53d91d61ef5d2f55..b842d73c99f744c2d845f69daf0210d1a2d3d06e 100644 (file)
@@ -143,3 +143,17 @@ fn issue1434() {
             })?;
     }
 }
+
+fn issue2264() {
+    {
+        something.function()
+                 .map(|| {
+                          if let a_very_very_very_very_very_very_very_very_long_variable =
+                              compute_this_variable()
+                          {
+                              println!("Hello");
+                          }
+                      })
+                 .collect();
+    }
+}