Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-assists/src/tests/generated.rs')
| -rw-r--r-- | crates/ide-assists/src/tests/generated.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/crates/ide-assists/src/tests/generated.rs b/crates/ide-assists/src/tests/generated.rs index 268ba3225b..82d05f3920 100644 --- a/crates/ide-assists/src/tests/generated.rs +++ b/crates/ide-assists/src/tests/generated.rs @@ -910,6 +910,27 @@ fn main() { } #[test] +fn doctest_fill_record_pattern_fields() { + check_doc_test( + "fill_record_pattern_fields", + r#####" +struct Bar { y: Y, z: Z } + +fn foo(bar: Bar) { + let Bar { ..$0 } = bar; +} +"#####, + r#####" +struct Bar { y: Y, z: Z } + +fn foo(bar: Bar) { + let Bar { y, z } = bar; +} +"#####, + ) +} + +#[test] fn doctest_fix_visibility() { check_doc_test( "fix_visibility", |