mirror of
				https://git.proxmox.com/git/rustc
				synced 2025-11-04 05:16:15 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			233 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			233 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// run-pass
 | 
						|
pub fn main() {
 | 
						|
 | 
						|
    macro_rules! mylambda_tt {
 | 
						|
        ($x:ident, $body:expr) => ({
 | 
						|
            fn f($x: isize) -> isize { return $body; }
 | 
						|
            f
 | 
						|
        })
 | 
						|
    }
 | 
						|
 | 
						|
    assert_eq!(mylambda_tt!(y, y * 2)(8), 16);
 | 
						|
}
 |