mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
add failing test
This commit is contained in:
parent
d77b5857c2
commit
2fa2805887
@ -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]
|
#[test]
|
||||||
fn test_join_lines_use_items_left() {
|
fn test_join_lines_use_items_left() {
|
||||||
// No space after the '{'
|
// No space after the '{'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user