]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0277]: `T` cannot be sent between threads safely |
0731742a | 2 | --> $DIR/builtin-superkinds-in-metadata.rs:13:23 |
b7449926 XL |
3 | | |
4 | LL | impl <T:Sync+'static> RequiresRequiresShareAndSend for X<T> { } | |
74b04a01 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely |
ba9703b0 XL |
6 | | |
7 | ::: $DIR/auxiliary/trait_superkinds_in_metadata.rs:7:58 | |
b7449926 | 8 | | |
ba9703b0 XL |
9 | LL | pub trait RequiresRequiresShareAndSend : RequiresShare + Send { } |
10 | | ---- required by this bound in `trait_superkinds_in_metadata::RequiresRequiresShareAndSend` | |
74b04a01 | 11 | | |
ba9703b0 | 12 | = help: within `X<T>`, the trait `std::marker::Send` is not implemented for `T` |
b7449926 | 13 | = note: required because it appears within the type `X<T>` |
ba9703b0 XL |
14 | help: consider further restricting this bound |
15 | | | |
16 | LL | impl <T:Sync+'static + std::marker::Send> RequiresRequiresShareAndSend for X<T> { } | |
17 | | ^^^^^^^^^^^^^^^^^^^ | |
b7449926 XL |
18 | |
19 | error: aborting due to previous error | |
20 | ||
21 | For more information about this error, try `rustc --explain E0277`. |