mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
test: Make imported_external test that the full path is replaced
This commit is contained in:
parent
2e00fa208f
commit
1981a3dc65
1 changed files with 4 additions and 6 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
"#,
|
"#,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue