summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-js/generics-multi-trait.js
blob: e7fcea876c85c4e515eb843f518b707b186525bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// exact-check

const QUERY = [
    'Result<SomeTrait>',
    'Zzzzzzzzzzzzzzzzzz',
    'Nonononononononono',
];

const EXPECTED = [
    // check one of the generic items
    {
        'in_args': [
            { 'path': 'generics_multi_trait', 'name': 'beta' },
        ],
        'returned': [
            { 'path': 'generics_multi_trait', 'name': 'bet' },
        ],
    },
    {
        'in_args': [
            { 'path': 'generics_multi_trait', 'name': 'beta' },
        ],
        'returned': [
            { 'path': 'generics_multi_trait', 'name': 'bet' },
        ],
    },
    // ignore the name of the generic itself
    {
        'in_args': [],
        'returned': [],
    },
];