summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-js-std/asrawfd.js
blob: 369a34f9c6eb7e64f318bba62cb2ce8f7c67c580 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// ignore-order

const QUERY = 'RawFd::as_raw_fd';

const EXPECTED = {
    'others': [
        // Reproduction test for https://github.com/rust-lang/rust/issues/78724
        // Validate that type alias methods get the correct path.
        { 'path': 'std::os::fd::AsRawFd', 'name': 'as_raw_fd' },
        { 'path': 'std::os::fd::AsRawFd', 'name': 'as_raw_fd' },
        { 'path': 'std::os::linux::process::PidFd', 'name': 'as_raw_fd' },
        { 'path': 'std::os::fd::RawFd', 'name': 'as_raw_fd' },
    ],
};