about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/unbox-type-result.js
blob: 1f5cba58adf6d511f9ff13d582dd05971721bcac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// exact-check

// Test case for https://github.com/rust-lang/rust/issues/139665
// make sure that std::io::Result and std::thread::Result get unboxed

const EXPECTED = [
    {
        query: "File -> Metadata",
        others: [
            { path: "std::fs::File", name: "metadata" },
            { path: "std::fs::File", name: "metadata_at" },
        ]
    },
    {
        query: "JoinHandle<T> -> T",
        others: [
            { path: "std::thread::JoinHandle", name: "join" },
        ]
    },
];