fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1003 B23 linesraw
1error[E0277]: `T` cannot be sent between threads safely
2  --> $DIR/builtin-superkinds-double-superkind.rs:6:24
3   |
4LL | impl <T: Sync+'static> Foo for (T,) { }
5   |                        ^^^ `T` cannot be sent between threads safely
6   |
7   = help: within `(T,)`, the trait `std::marker::Send` is not implemented for `T`
8   = help: consider adding a `where T: std::marker::Send` bound
9   = note: required because it appears within the type `(T,)`
10
11error[E0277]: `T` cannot be shared between threads safely
12  --> $DIR/builtin-superkinds-double-superkind.rs:9:16
13   |
14LL | impl <T: Send> Foo for (T,T) { }
15   |                ^^^ `T` cannot be shared between threads safely
16   |
17   = help: within `(T, T)`, the trait `std::marker::Sync` is not implemented for `T`
18   = help: consider adding a `where T: std::marker::Sync` bound
19   = note: required because it appears within the type `(T, T)`
20
21error: aborting due to 2 previous errors
22
23For more information about this error, try `rustc --explain E0277`.