about summary refs log tree commit diff
path: root/tests/rustdoc-js/full-path-function.js
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2023-09-02 23:04:37 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2023-09-02 23:04:37 +0200
commite161fa1a6b3752da0a9279298eedf5b84a5fe49f (patch)
treebfbd20ab32671f9cd4b206622b5ef1ff6a5479a3 /tests/rustdoc-js/full-path-function.js
parent36fa557a5e8ab96876157b44d199ad9b8e93d72c (diff)
downloadrust-e161fa1a6b3752da0a9279298eedf5b84a5fe49f.tar.gz
rust-e161fa1a6b3752da0a9279298eedf5b84a5fe49f.zip
Correctly handle paths from foreign items
Diffstat (limited to 'tests/rustdoc-js/full-path-function.js')
-rw-r--r--tests/rustdoc-js/full-path-function.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/rustdoc-js/full-path-function.js b/tests/rustdoc-js/full-path-function.js
index 9d3c3a4506c..48be51b156f 100644
--- a/tests/rustdoc-js/full-path-function.js
+++ b/tests/rustdoc-js/full-path-function.js
@@ -22,4 +22,22 @@ const EXPECTED = [
             { 'path': 'full_path_function::b::Sac', 'name': 'bar2' },
         ],
     },
+    {
+        'query': 'string::string -> u32',
+        'others': [
+            { 'path': 'full_path_function::b::Sac', 'name': 'string' },
+        ],
+    },
+    {
+        'query': 'alloc::string::string -> u32',
+        'others': [
+            { 'path': 'full_path_function::b::Sac', 'name': 'string' },
+        ],
+    },
+    {
+        'query': 'alloc::string -> u32',
+        'others': [
+            { 'path': 'full_path_function::b::Sac', 'name': 'string' },
+        ],
+    },
 ];