File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -72,19 +72,19 @@ error[E0277]: `*const ()` cannot be sent between threads safely
72
72
22 | is_send::<Vec<NotSend, 4>>();
73
73
| ^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
74
74
|
75
- = help: within `heapless::Vec< PhantomData<*const ()>, 4 >`, the trait `Send` is not implemented for `*const ()`
75
+ = help: within `heapless::vec::VecInner<[MaybeUninit< PhantomData<*const ()>>; 4] >`, the trait `Send` is not implemented for `*const ()`
76
76
note: required because it appears within the type `PhantomData<*const ()>`
77
77
--> $RUST/core/src/marker.rs
78
78
note: required because it appears within the type `ManuallyDrop<PhantomData<*const ()>>`
79
79
--> $RUST/core/src/mem/manually_drop.rs
80
80
note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>`
81
81
--> $RUST/core/src/mem/maybe_uninit.rs
82
82
= note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]`
83
- note: required because it appears within the type `Vec< PhantomData<*const ()>, 4 >`
83
+ note: required because it appears within the type `VecInner<[MaybeUninit< PhantomData<*const ()>>; 4] >`
84
84
--> $HEAPLESS/src/vec.rs
85
85
|
86
- | pub struct Vec<T, const N: usize > {
87
- | ^^^
86
+ | pub struct VecInner<B: ?Sized + VecDrop > {
87
+ | ^^^^^^^^
88
88
note: required by a bound in `is_send`
89
89
--> ui/not-send.rs:14:8
90
90
|
You can’t perform that action at this time.
0 commit comments