mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
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`.
 |