mirror of
				https://git.proxmox.com/git/rustc
				synced 2025-11-04 12:36:22 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			266 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			266 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
pub trait Bar<S> {}
 | 
						|
 | 
						|
pub trait Qux<T> {}
 | 
						|
 | 
						|
pub trait Foo<T, S> {
 | 
						|
    fn bar()
 | 
						|
    where
 | 
						|
        T: Bar<S>,
 | 
						|
    {
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
pub struct Concrete;
 | 
						|
 | 
						|
impl<S> Foo<(), S> for Concrete {}
 | 
						|
 | 
						|
impl<T, S> Bar<S> for T where S: Qux<T> {}
 | 
						|
 | 
						|
impl<T, S> Qux<T> for S where T: Bar<S> {}
 |