mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			251 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			251 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
struct Foo<T: Clone>(T);
 | 
						|
 | 
						|
use std::ops::Add;
 | 
						|
 | 
						|
impl<T: Clone, Add> Add for Foo<T> {
 | 
						|
//~^ ERROR expected trait, found type parameter
 | 
						|
    type Output = usize;
 | 
						|
 | 
						|
    fn add(self, rhs: Self) -> Self::Output {
 | 
						|
        unimplemented!();
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
fn main() {}
 |