mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			426 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			426 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
error: lifetime may not live long enough
 | 
						|
  --> $DIR/issue-74497-lifetime-in-opaque.rs:18:21
 | 
						|
   |
 | 
						|
LL |     let _ = foo(|x| bar(x));
 | 
						|
   |                  -- ^^^^^^ returning this value requires that `'1` must outlive `'2`
 | 
						|
   |                  ||
 | 
						|
   |                  |return type of closure `impl Future<Output = ()>` contains a lifetime `'2`
 | 
						|
   |                  has type `&'1 u8`
 | 
						|
 | 
						|
error: aborting due to 1 previous error
 | 
						|
 |