1
Fork 0

rustdoc-search: add support for nested generics

This commit is contained in:
Michael Howell 2023-03-30 21:53:11 -07:00
parent 276fa29480
commit afee2411e3
4 changed files with 184 additions and 13 deletions

View file

@ -0,0 +1,33 @@
// exact-check
const QUERY = [
'-> Out<First<Second>>',
'-> Out<Second<First>>',
'-> Out<First, Second>',
'-> Out<Second, First>',
];
const EXPECTED = [
{
// -> Out<First<Second>>
'others': [
{ 'path': 'generics_nested', 'name': 'alef' },
],
},
{
// -> Out<Second<First>>
'others': [],
},
{
// -> Out<First, Second>
'others': [
{ 'path': 'generics_nested', 'name': 'bet' },
],
},
{
// -> Out<Second, First>
'others': [
{ 'path': 'generics_nested', 'name': 'bet' },
],
},
];