mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			201 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			201 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
trait Trait<'a> {
 | 
						|
    type Assoc;
 | 
						|
}
 | 
						|
 | 
						|
fn test_argument_position(x: impl for<'a> Trait<'a, Assoc = impl Copy + 'a>) {}
 | 
						|
//~^ ERROR `impl Trait` can only mention lifetimes from an fn or impl
 | 
						|
 | 
						|
fn main() {}
 |