rust/tests/ui/entry-point/imported_main_from_inner_mod.rs
2024-03-06 12:01:54 +00:00

9 lines
111 B
Rust

//@ run-pass
pub mod foo {
pub fn bar() {
println!("Hello world!");
}
}
use foo::bar as main;