summaryrefslogtreecommitdiffstats
path: root/src/test/ui/builtin-superkinds/builtin-superkinds-in-metadata.stderr
blob: a46e4b2337ccd3116a1e1f9a76be1f38aeb9ecaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
error[E0277]: `T` cannot be sent between threads safely
  --> $DIR/builtin-superkinds-in-metadata.rs:13:23
   |
LL | impl <T:Sync+'static> RequiresRequiresShareAndSend for X<T> { }
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely
   |
note: required because it appears within the type `X<T>`
  --> $DIR/builtin-superkinds-in-metadata.rs:9:8
   |
LL | struct X<T>(T);
   |        ^
note: required by a bound in `RequiresRequiresShareAndSend`
  --> $DIR/auxiliary/trait_superkinds_in_metadata.rs:7:58
   |
LL | pub trait RequiresRequiresShareAndSend : RequiresShare + Send { }
   |                                                          ^^^^ required by this bound in `RequiresRequiresShareAndSend`
help: consider further restricting this bound
   |
LL | impl <T:Sync+'static + std::marker::Send> RequiresRequiresShareAndSend for X<T> { }
   |                      +++++++++++++++++++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.