rust/tests/rustdoc-js/generics.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

78 lines
1.7 KiB
JavaScript
Raw Normal View History

// exact-check
const EXPECTED = [
{
2023-06-09 14:49:38 +00:00
'query': 'R<P>',
'returned': [
{ 'path': 'generics', 'name': 'alef' },
],
'in_args': [
{ 'path': 'generics', 'name': 'alpha' },
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'R<struct:P>',
'returned': [
{ 'path': 'generics', 'name': 'alef' },
],
'in_args': [
{ 'path': 'generics', 'name': 'alpha' },
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'R<enum:P>',
'returned': [],
'in_args': [],
},
{
2023-06-09 14:49:38 +00:00
'query': '"P"',
'others': [
{ 'path': 'generics', 'name': 'P' },
],
'returned': [
{ 'path': 'generics', 'name': 'alef' },
],
'in_args': [
{ 'path': 'generics', 'name': 'alpha' },
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'P',
'returned': [
{ 'path': 'generics', 'name': 'alef' },
],
'in_args': [
{ 'path': 'generics', 'name': 'alpha' },
],
},
{
2023-06-09 14:49:38 +00:00
'query': '"ExtraCreditStructMulti"<ExtraCreditInnerMulti, ExtraCreditInnerMulti>',
'in_args': [
{ 'path': 'generics', 'name': 'extracreditlabhomework' },
],
'returned': [],
},
2021-08-23 20:19:43 +00:00
{
2023-06-09 14:49:38 +00:00
'query': 'TraitCat',
2021-08-23 20:19:43 +00:00
'in_args': [
{ 'path': 'generics', 'name': 'gamma' },
],
},
{
2023-06-09 14:49:38 +00:00
'query': 'TraitDog',
2021-08-23 20:19:43 +00:00
'in_args': [
{ 'path': 'generics', 'name': 'gamma' },
],
},
2021-08-11 18:14:26 +00:00
{
2023-06-09 14:49:38 +00:00
'query': 'Result<String>',
2021-08-11 18:14:26 +00:00
'others': [],
'returned': [
{ 'path': 'generics', 'name': 'super_soup' },
],
'in_args': [
{ 'path': 'generics', 'name': 'super_soup' },
],
},
];