mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			203 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			203 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// check-pass
 | 
						|
// aux-build:test-macros.rs
 | 
						|
 | 
						|
#[macro_use]
 | 
						|
extern crate test_macros;
 | 
						|
 | 
						|
#[identity_attr]
 | 
						|
mod m {
 | 
						|
    pub struct S;
 | 
						|
}
 | 
						|
 | 
						|
#[identity_attr]
 | 
						|
fn f() {
 | 
						|
    mod m {}
 | 
						|
}
 | 
						|
 | 
						|
fn main() {
 | 
						|
    let s = m::S;
 | 
						|
}
 |