1 #[cxx::bridge] 2 mod ffi { 3 extern "C++" { 4 type Opaque; 5 } 6 } 7 assert_send<T: Send>()8fn assert_send<T: Send>() {} assert_sync<T: Sync>()9fn assert_sync<T: Sync>() {} assert_unpin<T: Unpin>()10fn assert_unpin<T: Unpin>() {} 11 main()12fn main() { 13 assert_send::<ffi::Opaque>(); 14 assert_sync::<ffi::Opaque>(); 15 assert_unpin::<ffi::Opaque>(); 16 } 17