rust/src/test/ui/parser/circular_modules_main.rs

11 lines
256 B
Rust
Raw Normal View History

#[path = "circular_modules_hello.rs"]
mod circular_modules_hello; //~ ERROR: circular modules
pub fn hi_str() -> String {
"Hi!".to_string()
}
fn main() {
2020-03-08 12:19:27 +01:00
circular_modules_hello::say_hello(); //~ ERROR cannot find function `say_hello` in module
}