mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			302 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			302 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #[path = "circular_modules_hello.rs"]
 | |
| mod circular_modules_hello;
 | |
| 
 | |
| pub fn hi_str() -> String {
 | |
|     "Hi!".to_string()
 | |
| }
 | |
| 
 | |
| fn main() {
 | |
|     circular_modules_hello::say_hello();
 | |
| }
 | |
| 
 | |
| //~? ERROR circular modules: $DIR/circular_modules_main.rs -> $DIR/circular_modules_hello.rs -> $DIR/circular_modules_main.rs
 | 
