diff options
Diffstat (limited to 'crates/ide_assists/src/tests/generated.rs')
-rw-r--r-- | crates/ide_assists/src/tests/generated.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ide_assists/src/tests/generated.rs b/crates/ide_assists/src/tests/generated.rs index 66fbcc968..736027ff0 100644 --- a/crates/ide_assists/src/tests/generated.rs +++ b/crates/ide_assists/src/tests/generated.rs | |||
@@ -726,6 +726,8 @@ fn doctest_generate_is_empty_from_len() { | |||
726 | check_doc_test( | 726 | check_doc_test( |
727 | "generate_is_empty_from_len", | 727 | "generate_is_empty_from_len", |
728 | r#####" | 728 | r#####" |
729 | struct MyStruct { data: Vec<String> } | ||
730 | |||
729 | impl MyStruct { | 731 | impl MyStruct { |
730 | p$0ub fn len(&self) -> usize { | 732 | p$0ub fn len(&self) -> usize { |
731 | self.data.len() | 733 | self.data.len() |
@@ -733,6 +735,8 @@ impl MyStruct { | |||
733 | } | 735 | } |
734 | "#####, | 736 | "#####, |
735 | r#####" | 737 | r#####" |
738 | struct MyStruct { data: Vec<String> } | ||
739 | |||
736 | impl MyStruct { | 740 | impl MyStruct { |
737 | pub fn len(&self) -> usize { | 741 | pub fn len(&self) -> usize { |
738 | self.data.len() | 742 | self.data.len() |