summary refs log tree commit diff
path: root/tests/rustdoc-js/generics-nested.js
blob: b3184dde0d0c9595625960ac227397eff321b280 (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
// exact-check

const EXPECTED = [
    {
        'query': '-> Out<First<Second>>',
        'others': [
            { 'path': 'generics_nested', 'name': 'alef' },
        ],
    },
    {
        'query': '-> Out<Second<First>>',
        'others': [],
    },
    {
        'query': '-> Out<First, Second>',
        'others': [
            { 'path': 'generics_nested', 'name': 'bet' },
        ],
    },
    {
        // can't put generics out of order
        'query': '-> Out<Second, First>',
        'others': [],
    },
];