aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/completion/complete_path.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_path.rs')
-rw-r--r--crates/ra_ide_api/src/completion/complete_path.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_path.rs b/crates/ra_ide_api/src/completion/complete_path.rs
index c47a14e9f..39aefdb13 100644
--- a/crates/ra_ide_api/src/completion/complete_path.rs
+++ b/crates/ra_ide_api/src/completion/complete_path.rs
@@ -186,4 +186,20 @@ mod tests {
186 ", 186 ",
187 ); 187 );
188 } 188 }
189
190 #[test]
191 fn completes_use_paths_across_crates() {
192 check_reference_completion(
193 "completes_use_paths_across_crates",
194 "
195 //- /main.rs
196 use foo::<|>;
197
198 //- /foo/lib.rs
199 pub mod bar {
200 pub struct S;
201 }
202 ",
203 );
204 }
189} 205}