mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			240 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			240 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| fn main() {
 | |
|     let mut x //~ NOTE expected due to the type of this binding
 | |
|         =
 | |
|         2; //~ NOTE expected due to this value
 | |
|     x = 5.0;
 | |
|     //~^ ERROR mismatched types
 | |
|     //~| NOTE expected integer, found floating-point number
 | |
| }
 | 
