fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

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