mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
parent
21918c6f5e
commit
75a0123614
2 changed files with 29 additions and 0 deletions
|
@ -186,6 +186,31 @@ fn test_fn() {
|
|||
let one = 1;
|
||||
let s = TestStruct{ ..a };
|
||||
}
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_fill_struct_fields_blank_line() {
|
||||
check_fix(
|
||||
r#"
|
||||
struct S { a: (), b: () }
|
||||
|
||||
fn f() {
|
||||
S {
|
||||
$0
|
||||
};
|
||||
}
|
||||
"#,
|
||||
r#"
|
||||
struct S { a: (), b: () }
|
||||
|
||||
fn f() {
|
||||
S {
|
||||
a: (),
|
||||
b: (),
|
||||
};
|
||||
}
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue