fork/rust

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

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

1.44.0
659 B18 linesraw
1error[E0277]: `T` cannot be sent between threads safely
2  --> $DIR/builtin-superkinds-typaram-not-send.rs:5:24
3   |
4LL | trait Foo : Send { }
5   |             ---- required by this bound in `Foo`
6LL | 
7LL | impl <T: Sync+'static> Foo for T { }
8   |                        ^^^ `T` cannot be sent between threads safely
9   |
10   = help: the trait `std::marker::Send` is not implemented for `T`
11help: consider further restricting this bound
12   |
13LL | impl <T: Sync+'static + std::marker::Send> Foo for T { }
14   |                       ^^^^^^^^^^^^^^^^^^^
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0277`.