test: Make imported_external test that the full path is replaced

This commit is contained in:
Steven Joruk 2022-03-13 13:25:06 +00:00
parent 2e00fa208f
commit 1981a3dc65

View File

@ -723,24 +723,22 @@ fn main() {
}
#[test]
fn imported_external() {
fn full_path_type_is_replaced() {
check_assist(
inline_type_alias,
r#"
mod foo {
type A = String;
pub type A = String;
}
fn main() {
use foo::A;
let a: $0A;
let a: foo::$0A;
}
"#,
r#"
mod foo {
type A = String;
pub type A = String;
}
fn main() {
use foo::A;
let a: String;
}
"#,