mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			134 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			134 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| fn same_type<T>(_: T, _: T) {}
 | |
| 
 | |
| fn f<X, Y>(x: X, y: Y) {
 | |
|     same_type([x], Some(y));
 | |
|     //~^ ERROR mismatched types
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
