12 lines
302 B
Rust
12 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
|