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