Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/context/tests.rs')
-rw-r--r--crates/ide-completion/src/context/tests.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/crates/ide-completion/src/context/tests.rs b/crates/ide-completion/src/context/tests.rs
index 72bcbf366d..75c20968e1 100644
--- a/crates/ide-completion/src/context/tests.rs
+++ b/crates/ide-completion/src/context/tests.rs
@@ -371,6 +371,17 @@ fn foo() {
"#,
expect![[r#"ty: Foo, name: ?"#]],
);
+ check_expected_type_and_name(
+ r#"
+struct Foo { field: u32 }
+fn foo() {
+ Foo {
+ ..self::$0
+ }
+}
+"#,
+ expect!["ty: ?, name: ?"],
+ );
}
#[test]