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