mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			167 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			167 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| trait Foo {
 | |
|     fn foo(&mut self, x: i32, y: i32) -> i32;
 | |
| }
 | |
| 
 | |
| impl Foo for i32 {
 | |
|     fn foo(
 | |
|         &mut self, //~ ERROR
 | |
|         x: i32,
 | |
|     ) {
 | |
|     }
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
