1
1
error[E0277]: `*const ()` cannot be sent between threads safely
2
- --> $DIR /not-send.rs:19:5
2
+ --> ui /not-send.rs:19:5
3
3
|
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
- ...
10
4
19 | is_send::<Consumer<NotSend, 4>>();
11
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
12
6
|
13
7
= help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()`
14
8
= note: required because it appears within the type `PhantomData<*const ()>`
15
9
= 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
19
12
|
20
13
12 | fn is_send<T>()
21
14
| ------- required by a bound in this
22
15
13 | where
23
16
14 | 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
+ |
26
22
20 | is_send::<Producer<NotSend, 4>>();
27
23
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
28
24
|
29
25
= help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()`
30
26
= note: required because it appears within the type `PhantomData<*const ()>`
31
27
= 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
35
30
|
36
31
12 | fn is_send<T>()
37
32
| ------- required by a bound in this
38
33
13 | where
39
34
14 | 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
+ |
42
40
21 | is_send::<Queue<NotSend, 4>>();
43
41
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
44
42
|
@@ -49,16 +47,18 @@ error[E0277]: `*const ()` cannot be sent between threads safely
49
47
= note: required because it appears within the type `UnsafeCell<MaybeUninit<PhantomData<*const ()>>>`
50
48
= note: required because it appears within the type `[UnsafeCell<MaybeUninit<PhantomData<*const ()>>>; 4]`
51
49
= 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
55
52
|
56
53
12 | fn is_send<T>()
57
54
| ------- required by a bound in this
58
55
13 | where
59
56
14 | 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
+ |
62
62
22 | is_send::<Vec<NotSend, 4>>();
63
63
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
64
64
|
@@ -68,16 +68,18 @@ error[E0277]: `*const ()` cannot be sent between threads safely
68
68
= note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>`
69
69
= note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]`
70
70
= 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
74
73
|
75
74
12 | fn is_send<T>()
76
75
| ------- required by a bound in this
77
76
13 | where
78
77
14 | 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
+ |
81
83
23 | is_send::<HistoryBuffer<NotSend, 4>>();
82
84
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
83
85
|
@@ -87,3 +89,11 @@ error[E0277]: `*const ()` cannot be sent between threads safely
87
89
= note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>`
88
90
= note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]`
89
91
= 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