test: Make imported_external test that the full path is replaced
This commit is contained in:
@@ -723,24 +723,22 @@ fn main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn imported_external() {
|
fn full_path_type_is_replaced() {
|
||||||
check_assist(
|
check_assist(
|
||||||
inline_type_alias,
|
inline_type_alias,
|
||||||
r#"
|
r#"
|
||||||
mod foo {
|
mod foo {
|
||||||
type A = String;
|
pub type A = String;
|
||||||
}
|
}
|
||||||
fn main() {
|
fn main() {
|
||||||
use foo::A;
|
let a: foo::$0A;
|
||||||
let a: $0A;
|
|
||||||
}
|
}
|
||||||
"#,
|
"#,
|
||||||
r#"
|
r#"
|
||||||
mod foo {
|
mod foo {
|
||||||
type A = String;
|
pub type A = String;
|
||||||
}
|
}
|
||||||
fn main() {
|
fn main() {
|
||||||
use foo::A;
|
|
||||||
let a: String;
|
let a: String;
|
||||||
}
|
}
|
||||||
"#,
|
"#,
|
||||||
|
|||||||
Reference in New Issue
Block a user