error[E0277]: `*const cxx::void` cannot be sent between threads safely --> $DIR/opaque_autotraits.rs:13:5 | 13 | assert_send::(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const cxx::void` cannot be sent between threads safely | = help: within `ffi::Opaque`, the trait `Send` is not implemented for `*const cxx::void` = note: required because it appears within the type `[*const cxx::void; 0]` = note: required because it appears within the type `cxx::private::Opaque` note: required because it appears within the type `ffi::Opaque` --> $DIR/opaque_autotraits.rs:4:14 | 4 | type Opaque; | ^^^^^^ note: required by a bound in `assert_send` --> $DIR/opaque_autotraits.rs:8:19 | 8 | fn assert_send() {} | ^^^^ required by this bound in `assert_send` error[E0277]: `*const cxx::void` cannot be shared between threads safely --> $DIR/opaque_autotraits.rs:14:5 | 14 | assert_sync::(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const cxx::void` cannot be shared between threads safely | = help: within `ffi::Opaque`, the trait `Sync` is not implemented for `*const cxx::void` = note: required because it appears within the type `[*const cxx::void; 0]` = note: required because it appears within the type `cxx::private::Opaque` note: required because it appears within the type `ffi::Opaque` --> $DIR/opaque_autotraits.rs:4:14 | 4 | type Opaque; | ^^^^^^ note: required by a bound in `assert_sync` --> $DIR/opaque_autotraits.rs:9:19 | 9 | fn assert_sync() {} | ^^^^ required by this bound in `assert_sync` error[E0277]: `PhantomPinned` cannot be unpinned --> $DIR/opaque_autotraits.rs:15:5 | 15 | assert_unpin::(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `ffi::Opaque`, the trait `Unpin` is not implemented for `PhantomPinned` | = note: consider using `Box::pin` = note: required because it appears within the type `PhantomData` = note: required because it appears within the type `cxx::private::Opaque` note: required because it appears within the type `ffi::Opaque` --> $DIR/opaque_autotraits.rs:4:14 | 4 | type Opaque; | ^^^^^^ note: required by a bound in `assert_unpin` --> $DIR/opaque_autotraits.rs:10:20 | 10 | fn assert_unpin() {} | ^^^^^ required by this bound in `assert_unpin`