You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: `*const ()` cannot be sent between threads safely
2
2
--> $DIR/not-send.rs:19:5
3
3
|
4
-
12 | fn is_send<T>()
5
-
| -------
6
-
13 | where
7
-
14 | T: Send,
8
-
| ---- required by this bound in `is_send`
9
-
...
10
4
19 | is_send::<Consumer<NotSend, consts::U4>>();
11
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
12
6
|
13
7
= help: within `std::marker::PhantomData<*const ()>`, the trait `std::marker::Send` is not implemented for `*const ()`
14
8
= note: required because it appears within the type `std::marker::PhantomData<*const ()>`
15
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
+
| |_^
16
19
17
20
error[E0277]: `*const ()` cannot be sent between threads safely
18
21
--> $DIR/not-send.rs:20:5
19
22
|
20
-
12 | fn is_send<T>()
21
-
| -------
22
-
13 | where
23
-
14 | T: Send,
24
-
| ---- required by this bound in `is_send`
25
-
...
26
23
20 | is_send::<Producer<NotSend, consts::U4>>();
27
24
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
28
25
|
29
26
= help: within `std::marker::PhantomData<*const ()>`, the trait `std::marker::Send` is not implemented for `*const ()`
30
27
= note: required because it appears within the type `std::marker::PhantomData<*const ()>`
31
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
+
| |_^
32
38
33
39
error[E0277]: `*const ()` cannot be sent between threads safely
34
40
--> $DIR/not-send.rs:21:5
35
41
|
36
-
12 | fn is_send<T>()
37
-
| -------
38
-
13 | where
39
-
14 | T: Send,
40
-
| ---- required by this bound in `is_send`
41
-
...
42
42
21 | is_send::<Queue<NotSend, consts::U4>>();
43
43
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
44
44
|
@@ -49,16 +49,19 @@ error[E0277]: `*const ()` cannot be sent between threads safely
49
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
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
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
+
| |_^
52
61
53
62
error[E0277]: `*const ()` cannot be sent between threads safely
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
64
67
|
@@ -69,3 +72,12 @@ error[E0277]: `*const ()` cannot be sent between threads safely
69
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>>>`
70
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>>>`
71
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>>`
0 commit comments