]>
Commit | Line | Data |
---|---|---|
1 | error[E0277]: `T` cannot be sent between threads safely | |
2 | --> $DIR/builtin-superkinds-double-superkind.rs:6:24 | |
3 | | | |
4 | LL | 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 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 | | ^^^^^^^^^^^^ | |
13 | = note: required because it appears within the type `(T,)` | |
14 | ||
15 | error[E0277]: `T` cannot be shared between threads safely | |
16 | --> $DIR/builtin-superkinds-double-superkind.rs:9:16 | |
17 | | | |
18 | LL | 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` | |
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 | | ^^^^ | |
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`. |