fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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