blob: 77bae0664c6f482a491221e4e0c273b4b0e6d1be [file] [log] [blame]
David Tolnaya62cca22020-05-07 21:52:16 -07001// Rustfmt mangles the extern type alias.
2// https://github.com/rust-lang/rustfmt/issues/4159
3#[rustfmt::skip]
4#[cxx::bridge(namespace = tests)]
5pub mod ffi {
6 extern "C" {
David Tolnayd41eef52020-10-07 16:33:55 -07007 include!("tests/ffi/tests.h");
David Tolnaya62cca22020-05-07 21:52:16 -07008
9 type C = crate::ffi::C;
10
11 fn c_take_unique_ptr(c: UniquePtr<C>);
12 }
13}