|
1 |
| -error[E0107]: this struct takes 3 generic arguments but 4 generic arguments were supplied |
2 |
| - --> $DIR/not-send.rs:18:15 |
3 |
| - | |
4 |
| -18 | is_send::<Consumer<NotSend, _, _, 4>>(); |
5 |
| - | ^^^^^^^^ --- help: remove this generic argument |
6 |
| - | | |
7 |
| - | expected 3 generic arguments |
| 1 | +error[E0277]: `*const ()` cannot be sent between threads safely |
| 2 | + --> $DIR/not-send.rs:18:5 |
8 | 3 | |
|
9 |
| -note: struct defined here, with 3 generic parameters: `T`, `U`, `N` |
10 |
| - --> $DIR/split.rs:26:12 |
| 4 | +11 | fn is_send<T>() |
| 5 | + | ------- required by a bound in this |
| 6 | +12 | where |
| 7 | +13 | T: Send, |
| 8 | + | ---- required by this bound in `is_send` |
| 9 | +... |
| 10 | +18 | is_send::<Consumer<NotSend, _, 4>>(); |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
11 | 12 | |
|
12 |
| -26 | pub struct Consumer<'a, T, U, const N: usize> |
13 |
| - | ^^^^^^^^ - - - |
| 13 | + = help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()` |
| 14 | + = note: required because it appears within the type `PhantomData<*const ()>` |
| 15 | + = note: required because of the requirements on the impl of `Send` for `Consumer<'_, PhantomData<*const ()>, _, 4_usize>` |
14 | 16 |
|
15 |
| -error[E0107]: this struct takes 3 generic arguments but 4 generic arguments were supplied |
16 |
| - --> $DIR/not-send.rs:19:15 |
17 |
| - | |
18 |
| -19 | is_send::<Producer<NotSend, _, _, 4>>(); |
19 |
| - | ^^^^^^^^ --- help: remove this generic argument |
20 |
| - | | |
21 |
| - | expected 3 generic arguments |
| 17 | +error[E0277]: `*const ()` cannot be sent between threads safely |
| 18 | + --> $DIR/not-send.rs:19:5 |
22 | 19 | |
|
23 |
| -note: struct defined here, with 3 generic parameters: `T`, `U`, `N` |
24 |
| - --> $DIR/split.rs:43:12 |
| 20 | +11 | fn is_send<T>() |
| 21 | + | ------- required by a bound in this |
| 22 | +12 | where |
| 23 | +13 | T: Send, |
| 24 | + | ---- required by this bound in `is_send` |
| 25 | +... |
| 26 | +19 | is_send::<Producer<NotSend, _, 4>>(); |
| 27 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
25 | 28 | |
|
26 |
| -43 | pub struct Producer<'a, T, U, const N: usize> |
27 |
| - | ^^^^^^^^ - - - |
| 29 | + = help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()` |
| 30 | + = note: required because it appears within the type `PhantomData<*const ()>` |
| 31 | + = note: required because of the requirements on the impl of `Send` for `Producer<'_, PhantomData<*const ()>, _, 4_usize>` |
28 | 32 |
|
29 |
| -error[E0107]: this struct takes 3 generic arguments but 4 generic arguments were supplied |
30 |
| - --> $DIR/not-send.rs:20:15 |
31 |
| - | |
32 |
| -20 | is_send::<Queue<NotSend, _, _, 4>>(); |
33 |
| - | ^^^^^ --- help: remove this generic argument |
34 |
| - | | |
35 |
| - | expected 3 generic arguments |
36 |
| - | |
37 |
| -note: struct defined here, with 3 generic parameters: `T`, `U`, `N` |
38 |
| - --> $DIR/mod.rs:151:12 |
39 |
| - | |
40 |
| -151 | pub struct Queue<T, U, const N: usize> |
41 |
| - | ^^^^^ - - - |
| 33 | +error[E0277]: `*const ()` cannot be sent between threads safely |
| 34 | + --> $DIR/not-send.rs:20:5 |
| 35 | + | |
| 36 | +11 | fn is_send<T>() |
| 37 | + | ------- required by a bound in this |
| 38 | +12 | where |
| 39 | +13 | T: Send, |
| 40 | + | ---- required by this bound in `is_send` |
| 41 | +... |
| 42 | +20 | is_send::<Queue<NotSend, _, 4>>(); |
| 43 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely |
| 44 | + | |
| 45 | + = help: within `Queue<PhantomData<*const ()>, _, 4_usize>`, the trait `Send` is not implemented for `*const ()` |
| 46 | + = note: required because it appears within the type `PhantomData<*const ()>` |
| 47 | + = note: required because it appears within the type `[PhantomData<*const ()>; 4]` |
| 48 | + = note: required because it appears within the type `ManuallyDrop<[PhantomData<*const ()>; 4]>` |
| 49 | + = note: required because it appears within the type `MaybeUninit<[PhantomData<*const ()>; 4]>` |
| 50 | + = note: required because it appears within the type `Queue<PhantomData<*const ()>, _, 4_usize>` |
42 | 51 |
|
43 | 52 | error[E0277]: `*const ()` cannot be sent between threads safely
|
44 | 53 | --> $DIR/not-send.rs:21:5
|
|
0 commit comments