fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
1.0 KiB25 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: consider further restricting this bound: `T: std::marker::Send +`
8   |
9   = help: within `(T,)`, the trait `std::marker::Send` is not implemented for `T`
10   = note: required because it appears within the type `(T,)`
11
12error[E0277]: `T` cannot be shared between threads safely
13  --> $DIR/builtin-superkinds-double-superkind.rs:9:16
14   |
15LL | impl <T: Send> Foo for (T,T) { }
16   |       --       ^^^ `T` cannot be shared between threads safely
17   |       |
18   |       help: consider further restricting this bound: `T: std::marker::Sync +`
19   |
20   = help: within `(T, T)`, the trait `std::marker::Sync` is not implemented for `T`
21   = note: required because it appears within the type `(T, T)`
22
23error: aborting due to 2 previous errors
24
25For more information about this error, try `rustc --explain E0277`.