File: vector_autotraits.stderr

package info (click to toggle)
rust-cxx 1.0.141-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,632 kB
  • sloc: cpp: 1,573; javascript: 124; sh: 11; makefile: 8
file content (34 lines) | stat: -rw-r--r-- 1,410 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
error[E0277]: `*const cxx::void` cannot be sent between threads safely
  --> tests/ui/vector_autotraits.rs:20:19
   |
20 |     assert_send::<CxxVector<ffi::NotThreadSafe>>();
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const cxx::void` cannot be sent between threads safely
   |
   = help: within `CxxVector<NotThreadSafe>`, 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`
  --> src/opaque.rs
   |
   | pub struct Opaque {
   |            ^^^^^^
note: required because it appears within the type `NotThreadSafe`
  --> tests/ui/vector_autotraits.rs:7:14
   |
7  |         type NotThreadSafe;
   |              ^^^^^^^^^^^^^
   = note: required because it appears within the type `[NotThreadSafe]`
note: required because it appears within the type `PhantomData<[NotThreadSafe]>`
  --> $RUST/core/src/marker.rs
   |
   | pub struct PhantomData<T: ?Sized>;
   |            ^^^^^^^^^^^
note: required because it appears within the type `CxxVector<NotThreadSafe>`
  --> src/cxx_vector.rs
   |
   | pub struct CxxVector<T> {
   |            ^^^^^^^^^
note: required by a bound in `assert_send`
  --> tests/ui/vector_autotraits.rs:16:19
   |
16 | fn assert_send<T: Send>() {}
   |                   ^^^^ required by this bound in `assert_send`