]> git.proxmox.com Git - rustc.git/blame - src/test/ui/builtin-superkinds/builtin-superkinds-in-metadata.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / builtin-superkinds / builtin-superkinds-in-metadata.stderr
CommitLineData
b7449926 1error[E0277]: `T` cannot be sent between threads safely
0731742a 2 --> $DIR/builtin-superkinds-in-metadata.rs:13:23
b7449926
XL
3 |
4LL | impl <T:Sync+'static> RequiresRequiresShareAndSend for X<T> { }
74b04a01 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely
ba9703b0
XL
6 |
7 ::: $DIR/auxiliary/trait_superkinds_in_metadata.rs:7:58
b7449926 8 |
ba9703b0
XL
9LL | pub trait RequiresRequiresShareAndSend : RequiresShare + Send { }
10 | ---- required by this bound in `trait_superkinds_in_metadata::RequiresRequiresShareAndSend`
74b04a01 11 |
ba9703b0 12 = help: within `X<T>`, the trait `std::marker::Send` is not implemented for `T`
b7449926 13 = note: required because it appears within the type `X<T>`
ba9703b0
XL
14help: consider further restricting this bound
15 |
16LL | impl <T:Sync+'static + std::marker::Send> RequiresRequiresShareAndSend for X<T> { }
17 | ^^^^^^^^^^^^^^^^^^^
b7449926
XL
18
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0277`.