Skip to content

Commit 0f6b497

Browse files
committed
Add a test for #2178
1 parent b8106eb commit 0f6b497

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

tests/source/expr.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,3 +355,7 @@ fn newlines_between_list_like_expr() {
355355
_ => bar(),
356356
};
357357
}
358+
359+
fn issue2178() {
360+
Ok(result.iter().map(|item| ls_util::rls_to_location(item)).collect())
361+
}

tests/target/expr.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,3 +408,10 @@ fn newlines_between_list_like_expr() {
408408
_ => bar(),
409409
};
410410
}
411+
412+
fn issue2178() {
413+
Ok(result
414+
.iter()
415+
.map(|item| ls_util::rls_to_location(item))
416+
.collect())
417+
}

0 commit comments

Comments
 (0)