mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			268 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			268 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// Test that multiple lifetimes are allowed in impl trait types.
 | 
						|
// build-pass (FIXME(62277): could be check-pass?)
 | 
						|
 | 
						|
trait X<'x>: Sized {}
 | 
						|
 | 
						|
impl<U> X<'_> for U {}
 | 
						|
 | 
						|
fn multiple_lifeteimes<'a, 'b, T: 'static>(x: &'a mut &'b T) -> impl X<'b> + 'a {
 | 
						|
    x
 | 
						|
}
 | 
						|
 | 
						|
fn main() {}
 |