diff options
| author | Michael Howell <michael@notriddle.com> | 2023-03-07 11:21:12 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-03-07 11:37:04 -0700 |
| commit | 44813e038c62ac975f4efaf8fb588949d24528af (patch) | |
| tree | 731356c11b1a7195166970df184fb29548bec65c /tests/rustdoc-js/where-clause.js | |
| parent | a6446c53fe8be6692b07e121b831c3db770ff94a (diff) | |
| download | rust-44813e038c62ac975f4efaf8fb588949d24528af.tar.gz rust-44813e038c62ac975f4efaf8fb588949d24528af.zip | |
rustdoc: fix type search when more than one `where` clause applies
Diffstat (limited to 'tests/rustdoc-js/where-clause.js')
| -rw-r--r-- | tests/rustdoc-js/where-clause.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/rustdoc-js/where-clause.js b/tests/rustdoc-js/where-clause.js index 4112f08fb0a..86254a80e20 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', '-> shazam']; +const QUERY = ['trait<nested>', '-> trait<nested>', 't1, t2', '-> shazam', 'drizzel -> shazam']; const EXPECTED = [ { @@ -19,6 +19,12 @@ const EXPECTED = [ { 'others': [ { 'path': 'where_clause', 'name': 'bippety' }, + { 'path': 'where_clause::Drizzel', 'name': 'boppety' }, + ], + }, + { + 'others': [ + { 'path': 'where_clause::Drizzel', 'name': 'boppety' }, ], }, ]; |
