fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
760 B17 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   = help: within `X<T>`, the trait `std::marker::Send` is not implemented for `T`
8help: consider further restricting this bound with `+ std::marker::Send`
9  --> $DIR/builtin-superkinds-in-metadata.rs:13:9
10   |
11LL | impl <T:Sync+'static> RequiresRequiresShareAndSend for X<T> { }
12   |         ^^^^^^^^^^^^
13   = note: required because it appears within the type `X<T>`
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0277`.