fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

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