11error[E0277]: `*const ()` cannot be sent between threads safely
2- --> $DIR /not-send.rs:19:5
2+ --> ui /not-send.rs:19:5
33 |
4- 12 | fn is_send<T>()
5- | ------- required by a bound in this
6- 13 | where
7- 14 | T: Send,
8- | ---- required by this bound in `is_send`
9- ...
10419 | is_send::<Consumer<NotSend, 4>>();
115 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
126 |
137 = help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()`
148 = note: required because it appears within the type `PhantomData<*const ()>`
159 = note: required because of the requirements on the impl of `Send` for `Consumer<'_, PhantomData<*const ()>, 4_usize>`
16-
17- error[E0277]: `*const ()` cannot be sent between threads safely
18- --> $DIR/not-send.rs:20:5
10+ note: required by a bound in `is_send`
11+ --> ui/not-send.rs:14:8
1912 |
201312 | fn is_send<T>()
2114 | ------- required by a bound in this
221513 | where
231614 | T: Send,
24- | ---- required by this bound in `is_send`
25- ...
17+ | ^^^^ required by this bound in `is_send`
18+
19+ error[E0277]: `*const ()` cannot be sent between threads safely
20+ --> ui/not-send.rs:20:5
21+ |
262220 | is_send::<Producer<NotSend, 4>>();
2723 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
2824 |
2925 = help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()`
3026 = note: required because it appears within the type `PhantomData<*const ()>`
3127 = note: required because of the requirements on the impl of `Send` for `Producer<'_, PhantomData<*const ()>, 4_usize>`
32-
33- error[E0277]: `*const ()` cannot be sent between threads safely
34- --> $DIR/not-send.rs:21:5
28+ note: required by a bound in `is_send`
29+ --> ui/not-send.rs:14:8
3530 |
363112 | fn is_send<T>()
3732 | ------- required by a bound in this
383313 | where
393414 | T: Send,
40- | ---- required by this bound in `is_send`
41- ...
35+ | ^^^^ required by this bound in `is_send`
36+
37+ error[E0277]: `*const ()` cannot be sent between threads safely
38+ --> ui/not-send.rs:21:5
39+ |
424021 | is_send::<Queue<NotSend, 4>>();
4341 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
4442 |
@@ -49,16 +47,18 @@ error[E0277]: `*const ()` cannot be sent between threads safely
4947 = note: required because it appears within the type `UnsafeCell<MaybeUninit<PhantomData<*const ()>>>`
5048 = note: required because it appears within the type `[UnsafeCell<MaybeUninit<PhantomData<*const ()>>>; 4]`
5149 = note: required because it appears within the type `Queue<PhantomData<*const ()>, 4_usize>`
52-
53- error[E0277]: `*const ()` cannot be sent between threads safely
54- --> $DIR/not-send.rs:22:5
50+ note: required by a bound in `is_send`
51+ --> ui/not-send.rs:14:8
5552 |
565312 | fn is_send<T>()
5754 | ------- required by a bound in this
585513 | where
595614 | T: Send,
60- | ---- required by this bound in `is_send`
61- ...
57+ | ^^^^ required by this bound in `is_send`
58+
59+ error[E0277]: `*const ()` cannot be sent between threads safely
60+ --> ui/not-send.rs:22:5
61+ |
626222 | is_send::<Vec<NotSend, 4>>();
6363 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
6464 |
@@ -68,16 +68,18 @@ error[E0277]: `*const ()` cannot be sent between threads safely
6868 = note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>`
6969 = note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]`
7070 = note: required because it appears within the type `heapless::Vec<PhantomData<*const ()>, 4_usize>`
71-
72- error[E0277]: `*const ()` cannot be sent between threads safely
73- --> $DIR/not-send.rs:23:5
71+ note: required by a bound in `is_send`
72+ --> ui/not-send.rs:14:8
7473 |
757412 | fn is_send<T>()
7675 | ------- required by a bound in this
777613 | where
787714 | T: Send,
79- | ---- required by this bound in `is_send`
80- ...
78+ | ^^^^ required by this bound in `is_send`
79+
80+ error[E0277]: `*const ()` cannot be sent between threads safely
81+ --> ui/not-send.rs:23:5
82+ |
818323 | is_send::<HistoryBuffer<NotSend, 4>>();
8284 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
8385 |
@@ -87,3 +89,11 @@ error[E0277]: `*const ()` cannot be sent between threads safely
8789 = note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>`
8890 = note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]`
8991 = note: required because it appears within the type `HistoryBuffer<PhantomData<*const ()>, 4_usize>`
92+ note: required by a bound in `is_send`
93+ --> ui/not-send.rs:14:8
94+ |
95+ 12 | fn is_send<T>()
96+ | ------- required by a bound in this
97+ 13 | where
98+ 14 | T: Send,
99+ | ^^^^ required by this bound in `is_send`
0 commit comments