Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 1981a3d

Browse files
committed
test: Make imported_external test that the full path is replaced
1 parent 2e00fa2 commit 1981a3d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

crates/ide_assists/src/handlers/inline_type_alias.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -723,24 +723,22 @@ fn main() {
723723
}
724724

725725
#[test]
726-
fn imported_external() {
726+
fn full_path_type_is_replaced() {
727727
check_assist(
728728
inline_type_alias,
729729
r#"
730730
mod foo {
731-
type A = String;
731+
pub type A = String;
732732
}
733733
fn main() {
734-
use foo::A;
735-
let a: $0A;
734+
let a: foo::$0A;
736735
}
737736
"#,
738737
r#"
739738
mod foo {
740-
type A = String;
739+
pub type A = String;
741740
}
742741
fn main() {
743-
use foo::A;
744742
let a: String;
745743
}
746744
"#,

0 commit comments

Comments
 (0)