about summary refs log tree commit diff
path: root/tests/rustdoc-js/where-clause.js
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-03-07 10:06:42 -0700
committerMichael Howell <michael@notriddle.com>2023-03-07 11:20:49 -0700
commita6446c53fe8be6692b07e121b831c3db770ff94a (patch)
tree53a2359aaf4d1b4c7eeb8a3504b3f699179c4ae1 /tests/rustdoc-js/where-clause.js
parent0a3b557d528dd7c8a88ceca6f7dc0699b89a3ef4 (diff)
downloadrust-a6446c53fe8be6692b07e121b831c3db770ff94a.tar.gz
rust-a6446c53fe8be6692b07e121b831c3db770ff94a.zip
rustdoc: fix type search index for `fn<T>() -> &T where T: Trait`
Diffstat (limited to 'tests/rustdoc-js/where-clause.js')
-rw-r--r--tests/rustdoc-js/where-clause.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/rustdoc-js/where-clause.js b/tests/rustdoc-js/where-clause.js
index 6cb42a455a3..4112f08fb0a 100644
--- a/tests/rustdoc-js/where-clause.js
+++ b/tests/rustdoc-js/where-clause.js
@@ -1,4 +1,4 @@
-const QUERY = ['trait<nested>', '-> trait<nested>', 't1, t2'];
+const QUERY = ['trait<nested>', '-> trait<nested>', 't1, t2', '-> shazam'];
 
 const EXPECTED = [
     {
@@ -16,4 +16,9 @@ const EXPECTED = [
             { 'path': 'where_clause', 'name': 'presto' },
         ],
     },
+    {
+        'others': [
+            { 'path': 'where_clause', 'name': 'bippety' },
+        ],
+    },
 ];