mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			175 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			175 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Test that we cannot parse a closure with an explicit return type
 | |
| // unless it uses braces.
 | |
| 
 | |
| fn main() {
 | |
|     let x = || -> i32 22;
 | |
|     //~^ ERROR expected `{`, found `22`
 | |
| }
 | 
