Skip to content

Commit 6ca6f10

Browse files
Test for fuzzy unresolved path maatch
1 parent 5b7d928 commit 6ca6f10

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

crates/ide_completion/src/completions/flyimport.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,4 +921,26 @@ fn main() {
921921
}"#,
922922
);
923923
}
924+
925+
#[test]
926+
fn fuzzy_unresolved_path() {
927+
check(
928+
r#"
929+
mod foo {
930+
pub mod bar {
931+
pub struct Item;
932+
933+
impl Item {
934+
pub const TEST_ASSOC: usize = 3;
935+
}
936+
}
937+
}
938+
939+
fn main() {
940+
let zz = "sdsd";
941+
bar::Ass$0
942+
}"#,
943+
expect![[]],
944+
)
945+
}
924946
}

0 commit comments

Comments
 (0)