mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			284 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			284 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //! Checks that functions from different modules are accessible via their fully-qualified paths.
 | |
| 
 | |
| //@ run-pass
 | |
| 
 | |
| mod foo {
 | |
|     pub fn x() -> isize {
 | |
|         return 1;
 | |
|     }
 | |
| }
 | |
| 
 | |
| mod bar {
 | |
|     pub fn y() -> isize {
 | |
|         return 1;
 | |
|     }
 | |
| }
 | |
| 
 | |
| pub fn main() {
 | |
|     foo::x();
 | |
|     bar::y();
 | |
| }
 | 
