mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-28 11:38:01 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			209 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			209 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ check-pass
 | |
| //@ edition:2021
 | |
| 
 | |
| macro_rules! create_async {
 | |
|     ($body:block) => {
 | |
|         async $body
 | |
|     };
 | |
| }
 | |
| 
 | |
| async fn other() {}
 | |
| 
 | |
| fn main() {
 | |
|     let y = create_async! {{
 | |
|         other().await;
 | |
|     }};
 | |
| }
 | 
