]> git.lizzy.rs Git - rust.git/blob - tests/ui/builtin-superkinds/builtin-superkinds-in-metadata.stderr
Re-add #[allow(unused)] attr
[rust.git] / tests / ui / builtin-superkinds / builtin-superkinds-in-metadata.stderr
1 error[E0277]: `T` cannot be sent between threads safely
2   --> $DIR/builtin-superkinds-in-metadata.rs:13:23
3    |
4 LL | impl <T:Sync+'static> RequiresRequiresShareAndSend for X<T> { }
5    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be sent between threads safely
6    |
7 note: required because it appears within the type `X<T>`
8   --> $DIR/builtin-superkinds-in-metadata.rs:9:8
9    |
10 LL | struct X<T>(T);
11    |        ^
12 note: required by a bound in `RequiresRequiresShareAndSend`
13   --> $DIR/auxiliary/trait_superkinds_in_metadata.rs:7:58
14    |
15 LL | pub trait RequiresRequiresShareAndSend : RequiresShare + Send { }
16    |                                                          ^^^^ required by this bound in `RequiresRequiresShareAndSend`
17 help: consider further restricting this bound
18    |
19 LL | impl <T:Sync+'static + std::marker::Send> RequiresRequiresShareAndSend for X<T> { }
20    |                      +++++++++++++++++++
21
22 error: aborting due to previous error
23
24 For more information about this error, try `rustc --explain E0277`.