about summary refs log tree commit diff
path: root/tests/rustdoc-js/trait-methods.js
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-09-22 17:27:06 -0700
committerMichael Howell <michael@notriddle.com>2023-11-19 18:54:36 -0700
commit63c50712f40055a60aefc8069661c3847bd27df4 (patch)
treefd35e82b0a00c87a0f383f8b1d37d8dc7f3a4dcd /tests/rustdoc-js/trait-methods.js
parent9a66e4471f71283fd54d80ef8147630d34756332 (diff)
downloadrust-63c50712f40055a60aefc8069661c3847bd27df4.tar.gz
rust-63c50712f40055a60aefc8069661c3847bd27df4.zip
rustdoc-search: add support for associated types
Diffstat (limited to 'tests/rustdoc-js/trait-methods.js')
-rw-r--r--tests/rustdoc-js/trait-methods.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/rustdoc-js/trait-methods.js b/tests/rustdoc-js/trait-methods.js
new file mode 100644
index 00000000000..dafad5e4378
--- /dev/null
+++ b/tests/rustdoc-js/trait-methods.js
@@ -0,0 +1,12 @@
+// exact-check
+
+const EXPECTED = [
+    {
+        'query': 'mytrait<t> -> option<t>',
+        'correction': null,
+        'in_args': [],
+        'others': [
+            { 'path': 'trait_methods::MyTrait', 'name': 'next' },
+        ],
+    },
+];