mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			175 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			175 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| trait A { fn foo(); }
 | |
| trait B { fn foo(); }
 | |
| 
 | |
| struct AB {}
 | |
| 
 | |
| impl A for AB {
 | |
|     fn foo() {}
 | |
| }
 | |
| 
 | |
| impl B for AB {
 | |
|     fn foo() {}
 | |
| }
 | |
| 
 | |
| fn main() {
 | |
|     AB::foo();  //~ ERROR E0034
 | |
| }
 | 
