mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	 98934707eb
			
		
	
	
		98934707eb
		
	
	
	
	
		
			
			Additionally, remove unused `tests/ui/auxiliary/svh-*` crates that are duplicates of `tests/ui/svh/auxiliary/svh-*`.
		
			
				
	
	
		
			17 lines
		
	
	
		
			249 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			249 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //! Check path resolution using `super`
 | |
| 
 | |
| //@ run-pass
 | |
| 
 | |
| #![allow(dead_code)]
 | |
| 
 | |
| pub mod a {
 | |
|     pub fn f() {}
 | |
|     pub mod b {
 | |
|         fn g() {
 | |
|             super::f(); // Accessing `f` from module `a` (parent of `b`)
 | |
|         }
 | |
|     }
 | |
| }
 | |
| 
 | |
| pub fn main() {}
 |