mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			187 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			187 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // run-pass
 | |
| 
 | |
| macro_rules! foo2 {
 | |
|     () => {
 | |
|         "foo"
 | |
|     }
 | |
| }
 | |
| 
 | |
| macro_rules! foo {
 | |
|     () => {
 | |
|         foo2!()
 | |
|     }
 | |
| }
 | |
| 
 | |
| fn main() {
 | |
|     assert_eq!(concat!(foo!(), "bar"), "foobar")
 | |
| }
 | 
