mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			194 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			194 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //! Test that items with identical names can coexist in different modules
 | |
| 
 | |
| //@ run-pass
 | |
| 
 | |
| #![allow(dead_code)]
 | |
| 
 | |
| mod foo {
 | |
|     pub fn baz() {}
 | |
| }
 | |
| 
 | |
| mod bar {
 | |
|     pub fn baz() {}
 | |
| }
 | |
| 
 | |
| pub fn main() {}
 | 
