chromium/third_party/rust/chromium_crates_io/vendor/cxx-1.0.126/tests/ui/vec_opaque.rs

#[cxx::bridge]
mod handle {
    extern "C++" {
        type Job;
    }
}

#[cxx::bridge]
mod ffi1 {
    extern "C++" {
        type Job;
    }

    extern "Rust" {
        fn f() -> Vec<Job>;
    }
}

#[cxx::bridge]
mod ffi2 {
    extern "C++" {
        type Job = crate::handle::Job;
    }

    extern "Rust" {
        fn f() -> Vec<Job>;
    }
}

fn f() -> Vec<handle::Job> {
    unimplemented!()
}

fn main() {}