mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			301 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			301 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| fn main() {}
 | |
| 
 | |
| macro_rules! m {
 | |
|     ($b:block) => {
 | |
|         'lab: $b; //~ ERROR cannot use a `block` macro fragment here
 | |
|         unsafe $b; //~ ERROR cannot use a `block` macro fragment here
 | |
|         |x: u8| -> () $b; //~ ERROR cannot use a `block` macro fragment here
 | |
|     }
 | |
| }
 | |
| 
 | |
| fn foo() {
 | |
|     m!({});
 | |
| }
 | 
