mirror of
https://github.com/topjohnwu/cxx.git
synced 2025-02-24 10:03:39 +00:00
14 lines
309 B
Rust
14 lines
309 B
Rust
// Rustfmt mangles the extern type alias.
|
|
// https://github.com/rust-lang/rustfmt/issues/4159
|
|
#[rustfmt::skip]
|
|
#[cxx::bridge(namespace = tests)]
|
|
pub mod ffi {
|
|
extern "C" {
|
|
include!("cxx-test-suite/tests.h");
|
|
|
|
type C = crate::ffi::C;
|
|
|
|
fn c_take_unique_ptr(c: UniquePtr<C>);
|
|
}
|
|
}
|