]> git.lizzy.rs Git - rust.git/commitdiff
Add a test for #2178
authortopecongiro <seuchida@gmail.com>
Thu, 30 Nov 2017 06:00:13 +0000 (15:00 +0900)
committertopecongiro <seuchida@gmail.com>
Thu, 30 Nov 2017 06:00:13 +0000 (15:00 +0900)
tests/source/expr.rs
tests/target/expr.rs

index 1a8d35f2f0c915a8a4d59410d68627260917dab8..4353efac4ec76b55d4c6bca65454d70b95020e24 100644 (file)
@@ -355,3 +355,7 @@ fn newlines_between_list_like_expr() {
         _ => bar(),
     };
 }
+
+fn issue2178() {
+    Ok(result.iter().map(|item| ls_util::rls_to_location(item)).collect())
+}
index 08803e5db4e20d685b833a2d97c1afd8ccdcacdf..0206548b31b2c453e48c3759ba3ec9a7acb9241e 100644 (file)
@@ -408,3 +408,10 @@ fn newlines_between_list_like_expr() {
         _ => bar(),
     };
 }
+
+fn issue2178() {
+    Ok(result
+        .iter()
+        .map(|item| ls_util::rls_to_location(item))
+        .collect())
+}