error[E0277]: `*const ()` cannot be sent between threads safely --> ui/not-send.rs:19:15 | 19 | is_send::>(); | ^^^^^^^^^^^^^^^^^^^^ `*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 ()>` --> $RUST/core/src/marker.rs | | pub struct PhantomData; | ^^^^^^^^^^^ = note: required for `Consumer<'_, PhantomData<*const ()>, 4>` to implement `Send` note: required by a bound in `is_send` --> ui/not-send.rs:14:8 | 12 | fn is_send() | ------- required by a bound in this function 13 | where 14 | T: Send, | ^^^^ required by this bound in `is_send` error[E0277]: `*const ()` cannot be sent between threads safely --> ui/not-send.rs:20:15 | 20 | is_send::>(); | ^^^^^^^^^^^^^^^^^^^^ `*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 ()>` --> $RUST/core/src/marker.rs | | pub struct PhantomData; | ^^^^^^^^^^^ = note: required for `Producer<'_, PhantomData<*const ()>, 4>` to implement `Send` note: required by a bound in `is_send` --> ui/not-send.rs:14:8 | 12 | fn is_send() | ------- required by a bound in this function 13 | where 14 | T: Send, | ^^^^ required by this bound in `is_send` error[E0277]: `*const ()` cannot be sent between threads safely --> ui/not-send.rs:21:15 | 21 | is_send::>(); | ^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely | = help: within `Queue, 4>`, the trait `Send` is not implemented for `*const ()` note: required because it appears within the type `PhantomData<*const ()>` --> $RUST/core/src/marker.rs | | pub struct PhantomData; | ^^^^^^^^^^^ note: required because it appears within the type `ManuallyDrop>` --> $RUST/core/src/mem/manually_drop.rs | | pub struct ManuallyDrop { | ^^^^^^^^^^^^ note: required because it appears within the type `MaybeUninit>` --> $RUST/core/src/mem/maybe_uninit.rs | | pub union MaybeUninit { | ^^^^^^^^^^^ note: required because it appears within the type `UnsafeCell>>` --> $RUST/core/src/cell.rs | | pub struct UnsafeCell { | ^^^^^^^^^^ = note: required because it appears within the type `[UnsafeCell>>; 4]` note: required because it appears within the type `Queue, 4>` --> $HEAPLESS/src/spsc.rs | | pub struct Queue { | ^^^^^ note: required by a bound in `is_send` --> ui/not-send.rs:14:8 | 12 | fn is_send() | ------- required by a bound in this function 13 | where 14 | T: Send, | ^^^^ required by this bound in `is_send` error[E0277]: `*const ()` cannot be sent between threads safely --> ui/not-send.rs:22:15 | 22 | is_send::>(); | ^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely | = help: within `heapless::vec::VecInner<[MaybeUninit>; 4]>`, the trait `Send` is not implemented for `*const ()` note: required because it appears within the type `PhantomData<*const ()>` --> $RUST/core/src/marker.rs | | pub struct PhantomData; | ^^^^^^^^^^^ note: required because it appears within the type `ManuallyDrop>` --> $RUST/core/src/mem/manually_drop.rs | | pub struct ManuallyDrop { | ^^^^^^^^^^^^ note: required because it appears within the type `MaybeUninit>` --> $RUST/core/src/mem/maybe_uninit.rs | | pub union MaybeUninit { | ^^^^^^^^^^^ = note: required because it appears within the type `[MaybeUninit>; 4]` note: required because it appears within the type `heapless::vec::VecInner<[MaybeUninit>; 4]>` --> $HEAPLESS/src/vec.rs | | pub struct VecInner { | ^^^^^^^^ note: required by a bound in `is_send` --> ui/not-send.rs:14:8 | 12 | fn is_send() | ------- required by a bound in this function 13 | where 14 | T: Send, | ^^^^ required by this bound in `is_send` error[E0277]: `*const ()` cannot be sent between threads safely --> ui/not-send.rs:23:15 | 23 | is_send::>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely | = help: within `HistoryBuffer, 4>`, the trait `Send` is not implemented for `*const ()` note: required because it appears within the type `PhantomData<*const ()>` --> $RUST/core/src/marker.rs | | pub struct PhantomData; | ^^^^^^^^^^^ note: required because it appears within the type `ManuallyDrop>` --> $RUST/core/src/mem/manually_drop.rs | | pub struct ManuallyDrop { | ^^^^^^^^^^^^ note: required because it appears within the type `MaybeUninit>` --> $RUST/core/src/mem/maybe_uninit.rs | | pub union MaybeUninit { | ^^^^^^^^^^^ = note: required because it appears within the type `[MaybeUninit>; 4]` note: required because it appears within the type `HistoryBuffer, 4>` --> $HEAPLESS/src/histbuf.rs | | pub struct HistoryBuffer { | ^^^^^^^^^^^^^ note: required by a bound in `is_send` --> ui/not-send.rs:14:8 | 12 | fn is_send() | ------- required by a bound in this function 13 | where 14 | T: Send, | ^^^^ required by this bound in `is_send`