aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/completion/src/completions/flyimport.rs44
1 files changed, 22 insertions, 22 deletions
diff --git a/crates/completion/src/completions/flyimport.rs b/crates/completion/src/completions/flyimport.rs
index 54f8e6d24..222809638 100644
--- a/crates/completion/src/completions/flyimport.rs
+++ b/crates/completion/src/completions/flyimport.rs
@@ -262,29 +262,29 @@ fn main() {
262 fn does_not_propose_names_in_scope() { 262 fn does_not_propose_names_in_scope() {
263 check( 263 check(
264 r#" 264 r#"
265 //- /lib.rs crate:dep 265//- /lib.rs crate:dep
266 pub mod test_mod { 266pub mod test_mod {
267 pub trait TestTrait { 267 pub trait TestTrait {
268 const SPECIAL_CONST: u8; 268 const SPECIAL_CONST: u8;
269 type HumbleType; 269 type HumbleType;
270 fn weird_function(); 270 fn weird_function();
271 fn random_method(&self); 271 fn random_method(&self);
272 } 272 }
273 pub struct TestStruct {} 273 pub struct TestStruct {}
274 impl TestTrait for TestStruct { 274 impl TestTrait for TestStruct {
275 const SPECIAL_CONST: u8 = 42; 275 const SPECIAL_CONST: u8 = 42;
276 type HumbleType = (); 276 type HumbleType = ();
277 fn weird_function() {} 277 fn weird_function() {}
278 fn random_method(&self) {} 278 fn random_method(&self) {}
279 } 279 }
280 } 280}
281 281
282 //- /main.rs crate:main deps:dep 282//- /main.rs crate:main deps:dep
283 use dep::test_mod::TestStruct; 283use dep::test_mod::TestStruct;
284 fn main() { 284fn main() {
285 TestSt$0 285 TestSt$0
286 } 286}
287 "#, 287"#,
288 expect![[r#""#]], 288 expect![[r#""#]],
289 ); 289 );
290 } 290 }