mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			307 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			307 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
trait HandlerFamily {
 | 
						|
    type Target;
 | 
						|
}
 | 
						|
 | 
						|
struct HandlerWrapper<H: HandlerFamily>(H);
 | 
						|
 | 
						|
impl<H: HandlerFamily> HandlerWrapper<H> {
 | 
						|
    pub fn set_handler(&self, handler: &H::Target)
 | 
						|
    where
 | 
						|
        T: Send + Sync + 'static,
 | 
						|
        //~^ ERROR cannot find type `T` in this scope
 | 
						|
    {
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
fn main() {}
 |