about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/trait-unbox.js
blob: 44ddc0c1e75ce7c5b84cbf874262563ee732cbb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// make sure type-based searches with traits get unboxed too

const EXPECTED = [
    {
        'query': 'any -> result<box>',
        'others': [
            { 'path': 'std::boxed::Box', 'name': 'downcast' },
        ],
    },
    {
        'query': 'split<bufread> -> option<result<vec<u8>>>',
        'others': [
            { 'path': 'std::io::Split', 'name': 'next' },
        ],
    },
];