summary refs log tree commit diff
path: root/tests/ui/implied-bounds/sod_service_chain.stderr
blob: 1c0ef573e7d337c90121b86797f7ada128d04822 (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
25
26
27
28
29
30
31
error[E0310]: the associated type `<P as Service>::Error` may not live long enough
  --> $DIR/sod_service_chain.rs:31:10
   |
LL |     ) -> ServiceChainBuilder<ServiceChain<P, S>, NS> {
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |          |
   |          the associated type `<P as Service>::Error` must be valid for the static lifetime...
   |          ...so that the type `<P as Service>::Error` will meet its required lifetime bounds
   |
help: consider adding an explicit lifetime bound
   |
LL |     ) -> ServiceChainBuilder<ServiceChain<P, S>, NS> where <P as Service>::Error: 'static {
   |                                                      ++++++++++++++++++++++++++++++++++++

error[E0310]: the associated type `<S as Service>::Error` may not live long enough
  --> $DIR/sod_service_chain.rs:31:10
   |
LL |     ) -> ServiceChainBuilder<ServiceChain<P, S>, NS> {
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |          |
   |          the associated type `<S as Service>::Error` must be valid for the static lifetime...
   |          ...so that the type `<S as Service>::Error` will meet its required lifetime bounds
   |
help: consider adding an explicit lifetime bound
   |
LL |     ) -> ServiceChainBuilder<ServiceChain<P, S>, NS> where <S as Service>::Error: 'static {
   |                                                      ++++++++++++++++++++++++++++++++++++

error: aborting due to 2 previous errors

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