]> git.lizzy.rs Git - rust.git/commitdiff
test: Make imported_external test that the full path is replaced
authorSteven Joruk <steven@joruk.com>
Sun, 13 Mar 2022 13:25:06 +0000 (13:25 +0000)
committerSteven Joruk <steven@joruk.com>
Sun, 13 Mar 2022 13:25:06 +0000 (13:25 +0000)
crates/ide_assists/src/handlers/inline_type_alias.rs

index ed8f22dd667d4a19c8eda751e446c6ce7f0c30a2..0ffa339cda55a2c003bf5af19882f0ae91cb0035 100644 (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;
 }
 "#,