mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			217 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			217 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ compile-flags: --crate-type=lib
 | 
						|
//@ check-pass
 | 
						|
 | 
						|
#![deny(refining_impl_trait)]
 | 
						|
 | 
						|
pub trait Tr<T> {
 | 
						|
    fn foo() -> impl for<'a> Tr<&'a Self>;
 | 
						|
}
 | 
						|
 | 
						|
impl<T> Tr<T> for () {
 | 
						|
    fn foo() -> impl for<'a> Tr<&'a Self> {}
 | 
						|
}
 |