mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			193 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			193 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
trait A { fn foo(self); }
 | 
						|
trait B { fn foo(self); }
 | 
						|
 | 
						|
struct AB {}
 | 
						|
 | 
						|
impl A for AB {
 | 
						|
    fn foo(self) {}
 | 
						|
}
 | 
						|
 | 
						|
impl B for AB {
 | 
						|
    fn foo(self) {}
 | 
						|
}
 | 
						|
 | 
						|
fn main() {
 | 
						|
    AB {}.foo();  //~ ERROR E0034
 | 
						|
}
 |