]> git.proxmox.com Git - rustc.git/blame - src/test/ui/builtin-superkinds/builtin-superkinds-double-superkind.stderr
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / builtin-superkinds / builtin-superkinds-double-superkind.stderr
CommitLineData
b7449926 1error[E0277]: `T` cannot be sent between threads safely
0731742a 2 --> $DIR/builtin-superkinds-double-superkind.rs:6:24
b7449926
XL
3 |
4LL | 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
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 | ^^^^^^^^^^^^
b7449926
XL
13 = note: required because it appears within the type `(T,)`
14
15error[E0277]: `T` cannot be shared between threads safely
0731742a 16 --> $DIR/builtin-superkinds-double-superkind.rs:9:16
b7449926
XL
17 |
18LL | 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
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 | ^^^^
b7449926
XL
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`.