mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-28 04:50:34 +00:00
90 lines
4.3 KiB
Plaintext
90 lines
4.3 KiB
Plaintext
error[E0277]: `*const ()` cannot be sent between threads safely
|
|
--> $DIR/not-send.rs:19:5
|
|
|
|
|
12 | fn is_send<T>()
|
|
| ------- required by a bound in this
|
|
13 | where
|
|
14 | T: Send,
|
|
| ---- required by this bound in `is_send`
|
|
...
|
|
19 | is_send::<Consumer<NotSend, 4>>();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
|
|
|
|
|
= help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()`
|
|
= note: required because it appears within the type `PhantomData<*const ()>`
|
|
= note: required because of the requirements on the impl of `Send` for `Consumer<'_, PhantomData<*const ()>, 4_usize>`
|
|
|
|
error[E0277]: `*const ()` cannot be sent between threads safely
|
|
--> $DIR/not-send.rs:20:5
|
|
|
|
|
12 | fn is_send<T>()
|
|
| ------- required by a bound in this
|
|
13 | where
|
|
14 | T: Send,
|
|
| ---- required by this bound in `is_send`
|
|
...
|
|
20 | is_send::<Producer<NotSend, 4>>();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
|
|
|
|
|
= help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()`
|
|
= note: required because it appears within the type `PhantomData<*const ()>`
|
|
= note: required because of the requirements on the impl of `Send` for `Producer<'_, PhantomData<*const ()>, 4_usize>`
|
|
|
|
error[E0277]: `*const ()` cannot be sent between threads safely
|
|
--> $DIR/not-send.rs:21:5
|
|
|
|
|
12 | fn is_send<T>()
|
|
| ------- required by a bound in this
|
|
13 | where
|
|
14 | T: Send,
|
|
| ---- required by this bound in `is_send`
|
|
...
|
|
21 | is_send::<Queue<NotSend, 4>>();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
|
|
|
|
|
= help: within `Queue<PhantomData<*const ()>, 4_usize>`, the trait `Send` is not implemented for `*const ()`
|
|
= note: required because it appears within the type `PhantomData<*const ()>`
|
|
= note: required because it appears within the type `ManuallyDrop<PhantomData<*const ()>>`
|
|
= note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>`
|
|
= note: required because it appears within the type `UnsafeCell<MaybeUninit<PhantomData<*const ()>>>`
|
|
= note: required because it appears within the type `[UnsafeCell<MaybeUninit<PhantomData<*const ()>>>; 4]`
|
|
= note: required because it appears within the type `Queue<PhantomData<*const ()>, 4_usize>`
|
|
|
|
error[E0277]: `*const ()` cannot be sent between threads safely
|
|
--> $DIR/not-send.rs:22:5
|
|
|
|
|
12 | fn is_send<T>()
|
|
| ------- required by a bound in this
|
|
13 | where
|
|
14 | T: Send,
|
|
| ---- required by this bound in `is_send`
|
|
...
|
|
22 | is_send::<Vec<NotSend, 4>>();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
|
|
|
|
|
= help: within `heapless::Vec<PhantomData<*const ()>, 4_usize>`, the trait `Send` is not implemented for `*const ()`
|
|
= note: required because it appears within the type `PhantomData<*const ()>`
|
|
= note: required because it appears within the type `ManuallyDrop<PhantomData<*const ()>>`
|
|
= note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>`
|
|
= note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]`
|
|
= note: required because it appears within the type `heapless::Vec<PhantomData<*const ()>, 4_usize>`
|
|
|
|
error[E0277]: `*const ()` cannot be sent between threads safely
|
|
--> $DIR/not-send.rs:23:5
|
|
|
|
|
12 | fn is_send<T>()
|
|
| ------- required by a bound in this
|
|
13 | where
|
|
14 | T: Send,
|
|
| ---- required by this bound in `is_send`
|
|
...
|
|
23 | is_send::<HistoryBuffer<NotSend, 4>>();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
|
|
|
|
|
= help: within `HistoryBuffer<PhantomData<*const ()>, 4_usize>`, the trait `Send` is not implemented for `*const ()`
|
|
= note: required because it appears within the type `PhantomData<*const ()>`
|
|
= note: required because it appears within the type `ManuallyDrop<PhantomData<*const ()>>`
|
|
= note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>`
|
|
= note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]`
|
|
= note: required because it appears within the type `HistoryBuffer<PhantomData<*const ()>, 4_usize>`
|