|
| 1 | +error[E0277]: `*const ()` cannot be sent between threads safely |
| 2 | + --> $DIR/not-send.rs:19:5 |
| 3 | + | |
| 4 | +19 | is_send::<Consumer<NotSend, consts::U4>>(); |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
| 6 | + | |
| 7 | + = help: within `std::marker::PhantomData<*const ()>`, the trait `std::marker::Send` is not implemented for `*const ()` |
| 8 | + = note: required because it appears within the type `std::marker::PhantomData<*const ()>` |
| 9 | + = note: required because of the requirements on the impl of `std::marker::Send` for `heapless::spsc::split::Consumer<'_, std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>` |
| 10 | +note: required by `is_send` |
| 11 | + --> $DIR/not-send.rs:12:1 |
| 12 | + | |
| 13 | +12 | / fn is_send<T>() |
| 14 | +13 | | where |
| 15 | +14 | | T: Send, |
| 16 | +15 | | { |
| 17 | +16 | | } |
| 18 | + | |_^ |
| 19 | + |
| 20 | +error[E0277]: `*const ()` cannot be sent between threads safely |
| 21 | + --> $DIR/not-send.rs:20:5 |
| 22 | + | |
| 23 | +20 | is_send::<Producer<NotSend, consts::U4>>(); |
| 24 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
| 25 | + | |
| 26 | + = help: within `std::marker::PhantomData<*const ()>`, the trait `std::marker::Send` is not implemented for `*const ()` |
| 27 | + = note: required because it appears within the type `std::marker::PhantomData<*const ()>` |
| 28 | + = note: required because of the requirements on the impl of `std::marker::Send` for `heapless::spsc::split::Producer<'_, std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>` |
| 29 | +note: required by `is_send` |
| 30 | + --> $DIR/not-send.rs:12:1 |
| 31 | + | |
| 32 | +12 | / fn is_send<T>() |
| 33 | +13 | | where |
| 34 | +14 | | T: Send, |
| 35 | +15 | | { |
| 36 | +16 | | } |
| 37 | + | |_^ |
| 38 | + |
| 39 | +error[E0277]: `*const ()` cannot be sent between threads safely |
| 40 | + --> $DIR/not-send.rs:21:5 |
| 41 | + | |
| 42 | +21 | is_send::<Queue<NotSend, consts::U4>>(); |
| 43 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
| 44 | + | |
| 45 | + = help: within `std::marker::PhantomData<*const ()>`, the trait `std::marker::Send` is not implemented for `*const ()` |
| 46 | + = note: required because it appears within the type `std::marker::PhantomData<*const ()>` |
| 47 | + = note: required because of the requirements on the impl of `std::marker::Send` for `generic_array::GenericArray<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>` |
| 48 | + = note: required because it appears within the type `std::mem::ManuallyDrop<generic_array::GenericArray<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>>` |
| 49 | + = note: required because it appears within the type `std::mem::MaybeUninit<generic_array::GenericArray<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>>` |
| 50 | + = note: required because it appears within the type `heapless::i::Queue<generic_array::GenericArray<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>>` |
| 51 | + = note: required because it appears within the type `heapless::spsc::Queue<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>` |
| 52 | +note: required by `is_send` |
| 53 | + --> $DIR/not-send.rs:12:1 |
| 54 | + | |
| 55 | +12 | / fn is_send<T>() |
| 56 | +13 | | where |
| 57 | +14 | | T: Send, |
| 58 | +15 | | { |
| 59 | +16 | | } |
| 60 | + | |_^ |
| 61 | + |
| 62 | +error[E0277]: `*const ()` cannot be sent between threads safely |
| 63 | + --> $DIR/not-send.rs:22:5 |
| 64 | + | |
| 65 | +22 | is_send::<heapless::Vec<NotSend, consts::U4>>(); |
| 66 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
| 67 | + | |
| 68 | + = help: within `std::marker::PhantomData<*const ()>`, the trait `std::marker::Send` is not implemented for `*const ()` |
| 69 | + = note: required because it appears within the type `std::marker::PhantomData<*const ()>` |
| 70 | + = note: required because of the requirements on the impl of `std::marker::Send` for `generic_array::GenericArray<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>` |
| 71 | + = note: required because it appears within the type `std::mem::ManuallyDrop<generic_array::GenericArray<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>>` |
| 72 | + = note: required because it appears within the type `std::mem::MaybeUninit<generic_array::GenericArray<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>>` |
| 73 | + = note: required because it appears within the type `heapless::i::Vec<generic_array::GenericArray<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>>` |
| 74 | + = note: required because it appears within the type `heapless::vec::Vec<std::marker::PhantomData<*const ()>, typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UInt<typenum::uint::UTerm, typenum::bit::B1>, typenum::bit::B0>, typenum::bit::B0>>` |
| 75 | +note: required by `is_send` |
| 76 | + --> $DIR/not-send.rs:12:1 |
| 77 | + | |
| 78 | +12 | / fn is_send<T>() |
| 79 | +13 | | where |
| 80 | +14 | | T: Send, |
| 81 | +15 | | { |
| 82 | +16 | | } |
| 83 | + | |_^ |
0 commit comments