You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
415 B

#[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() {}