| David Tolnay | a62cca2 | 2020-05-07 21:52:16 -0700 | [diff] [blame^] | 1 | // Rustfmt mangles the extern type alias. |
| 2 | // https://github.com/rust-lang/rustfmt/issues/4159 | ||||
| 3 | #[rustfmt::skip] | ||||
| 4 | #[cxx::bridge(namespace = tests)] | ||||
| 5 | pub mod ffi { | ||||
| 6 | extern "C" { | ||||
| 7 | include!("tests/ffi/tests.h"); | ||||
| 8 | |||||
| 9 | type C = crate::ffi::C; | ||||
| 10 | |||||
| 11 | fn c_take_unique_ptr(c: UniquePtr<C>); | ||||
| 12 | } | ||||
| 13 | } | ||||