diff options
Diffstat (limited to 'tests/ui/vector_autotraits.stderr')
-rw-r--r-- | tests/ui/vector_autotraits.stderr | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/tests/ui/vector_autotraits.stderr b/tests/ui/vector_autotraits.stderr index 8851cedc..1f0c522e 100644 --- a/tests/ui/vector_autotraits.stderr +++ b/tests/ui/vector_autotraits.stderr @@ -4,17 +4,29 @@ error[E0277]: `*const cxx::void` cannot be sent between threads safely 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 void; 0]` - = note: required because it appears within the type `Opaque` + = help: within `CxxVector<NotThreadSafe>`, the trait `Send` is not implemented for `*const cxx::void`, which is required by `CxxVector<NotThreadSafe>: Send` + = 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]>` - = note: required because it appears within the type `CxxVector<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 | |