mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
test: Make imported_external test that the full path is replaced
This commit is contained in:
parent
2e00fa208f
commit
1981a3dc65
@ -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;
|
||||
}
|
||||
"#,
|
||||
|
Loading…
Reference in New Issue
Block a user