aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ide_completion/src/completions/flyimport.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/crates/ide_completion/src/completions/flyimport.rs b/crates/ide_completion/src/completions/flyimport.rs
index c5b3c9e27..efb91fe0e 100644
--- a/crates/ide_completion/src/completions/flyimport.rs
+++ b/crates/ide_completion/src/completions/flyimport.rs
@@ -921,4 +921,26 @@ fn main() {
921}"#, 921}"#,
922 ); 922 );
923 } 923 }
924
925 #[test]
926 fn fuzzy_unresolved_path() {
927 check(
928 r#"
929mod foo {
930 pub mod bar {
931 pub struct Item;
932
933 impl Item {
934 pub const TEST_ASSOC: usize = 3;
935 }
936 }
937}
938
939fn main() {
940 let zz = "sdsd";
941 bar::Ass$0
942}"#,
943 expect![[]],
944 )
945 }
924} 946}