• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0277]: `*const cxx::void` cannot be sent between threads safely
2  --> $DIR/vector_autotraits.rs:20:5
3   |
420 |     assert_send::<CxxVector<ffi::NotThreadSafe>>();
5   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const cxx::void` cannot be sent between threads safely
6   |
7   = help: within `CxxVector<NotThreadSafe>`, the trait `Send` is not implemented for `*const cxx::void`
8   = note: required because it appears within the type `[*const cxx::void; 0]`
9   = note: required because it appears within the type `cxx::private::Opaque`
10note: required because it appears within the type `NotThreadSafe`
11  --> $DIR/vector_autotraits.rs:7:14
12   |
137  |         type NotThreadSafe;
14   |              ^^^^^^^^^^^^^
15   = note: required because it appears within the type `[NotThreadSafe]`
16   = note: required because it appears within the type `PhantomData<[NotThreadSafe]>`
17   = note: required because it appears within the type `CxxVector<NotThreadSafe>`
18note: required by a bound in `assert_send`
19  --> $DIR/vector_autotraits.rs:16:19
20   |
2116 | fn assert_send<T: Send>() {}
22   |                   ^^^^ required by this bound in `assert_send`
23