mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	 95ff642797
			
		
	
	
		95ff642797
		
	
	
	
	
		
			
			Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
		
			
				
	
	
		
			22 lines
		
	
	
		
			222 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			222 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ run-pass
 | |
| // Issue #17436
 | |
| 
 | |
| 
 | |
| mod bleh {
 | |
|     macro_rules! foo {
 | |
|         () => {
 | |
|             pub fn bar(&self) { }
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     pub struct S;
 | |
| 
 | |
|     impl S {
 | |
|         foo!();
 | |
|     }
 | |
| }
 | |
| 
 | |
| fn main() {
 | |
|     bleh::S.bar();
 | |
| }
 |