mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			168 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			168 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // run-pass
 | |
| // Test a rather underspecified example:
 | |
| #![allow(unused_braces)]
 | |
| 
 | |
| pub fn main() {
 | |
|     let f = {|i| i};
 | |
|     assert_eq!(f(2), 2);
 | |
|     assert_eq!(f(5), 5);
 | |
| }
 | 
