mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +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]
|
||||
fn test_join_lines_use_items_left() {
|
||||
// No space after the '{'
|
||||
|
Loading…
Reference in New Issue
Block a user