mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			356 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			356 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // This is not autofixable because we give extra suggestions to end the first expression with `;`.
 | |
| fn foo(a: Option<u32>, b: Option<u32>) -> bool {
 | |
|     if let Some(x) = a { true } else { false }
 | |
|     //~^ ERROR mismatched types
 | |
|     //~| ERROR mismatched types
 | |
|     && //~ ERROR mismatched types
 | |
|     if let Some(y) = a { true } else { false }
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
