diff --git a/crates/ide-completion/src/tests/use_tree.rs b/crates/ide-completion/src/tests/use_tree.rs index 167bdec546..f8b76571ca 100644 --- a/crates/ide-completion/src/tests/use_tree.rs +++ b/crates/ide-completion/src/tests/use_tree.rs @@ -8,6 +8,33 @@ fn check(ra_fixture: &str, expect: Expect) { expect.assert_eq(&actual) } +#[test] +fn use_tree_completion() { + check( + r#" +struct implThing; + +use crate::{impl$0}; +"#, + expect![[r#" + st implThing implThing + kw self + "#]], + ); + + check( + r#" +struct implThing; + +use crate::{impl$0; +"#, + expect![[r#" + st implThing implThing + kw self + "#]], + ); +} + #[test] fn use_tree_start() { cov_mark::check!(unqualified_path_selected_only);