add failing test

This commit is contained in:
Aleksey Kladov 2019-02-21 14:06:21 +03:00
parent d77b5857c2
commit 2fa2805887

View File

@ -207,6 +207,29 @@ fn foo() {
);
}
#[test]
#[ignore] // FIXME: https://github.com/rust-analyzer/rust-analyzer/issues/868
fn join_lines_adds_comma_for_block_in_match_arm() {
check_join_lines(
r"
fn foo(e: Result<U, V>) {
match e {
Ok(u) => <|>{
u.foo()
}
Err(v) => v,
}
}",
r"
fn foo(e: Result<U, V>) {
match e {
Ok(u) => <|>u.foo(),
Err(v) => v,
}
}",
);
}
#[test]
fn test_join_lines_use_items_left() {
// No space after the '{'