• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0277]: `*const cxx::void` cannot be sent between threads safely
2  --> tests/ui/vector_autotraits.rs:20:19
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 void; 0]`
9note: required because it appears within the type `Opaque`
10  --> src/opaque.rs
11   |
12   | pub struct Opaque {
13   |            ^^^^^^
14note: required because it appears within the type `NotThreadSafe`
15  --> tests/ui/vector_autotraits.rs:7:14
16   |
177  |         type NotThreadSafe;
18   |              ^^^^^^^^^^^^^
19   = note: required because it appears within the type `[NotThreadSafe]`
20note: required because it appears within the type `PhantomData<[NotThreadSafe]>`
21  --> $RUST/core/src/marker.rs
22   |
23   | pub struct PhantomData<T: ?Sized>;
24   |            ^^^^^^^^^^^
25note: required because it appears within the type `CxxVector<NotThreadSafe>`
26  --> src/cxx_vector.rs
27   |
28   | pub struct CxxVector<T> {
29   |            ^^^^^^^^^
30note: required by a bound in `assert_send`
31  --> tests/ui/vector_autotraits.rs:16:19
32   |
3316 | fn assert_send<T: Send>() {}
34   |                   ^^^^ required by this bound in `assert_send`
35