]> git.lizzy.rs Git - rust.git/commitdiff
Add a test for #1697
authortopecongiro <seuchida@gmail.com>
Fri, 16 Jun 2017 09:58:15 +0000 (18:58 +0900)
committertopecongiro <seuchida@gmail.com>
Sat, 17 Jun 2017 06:26:59 +0000 (15:26 +0900)
tests/source/closure.rs
tests/target/closure.rs

index fd3876720a8a716480d6a8de61403bad7e1767d0..2f695e771b64f9981603b008e2151f3cd4bf549e 100644 (file)
@@ -143,3 +143,7 @@ fn issue1329() {
 fn issue325() {
     let f = || unsafe { xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx };
 }
+
+fn issue1697() {
+    Test.func_a(A_VERY_LONG_CONST_VARIABLE_NAME, move |arg1, arg2, arg3, arg4| arg1 + arg2 + arg3 + arg4)
+}
index cb5cb405163019d2d7fce48de81d7be0c3013aff..7f09b1d7f686a975276415ba408c7432834c25ca 100644 (file)
@@ -167,3 +167,10 @@ fn issue325() {
     let f =
         || unsafe { xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx };
 }
+
+fn issue1697() {
+    Test.func_a(
+        A_VERY_LONG_CONST_VARIABLE_NAME,
+        move |arg1, arg2, arg3, arg4| arg1 + arg2 + arg3 + arg4,
+    )
+}