rust/tests/ui/entry-point/imported_main_from_inner_mod.rs
2023-01-11 09:32:08 +00:00

10 lines
137 B
Rust

// run-pass
#![feature(imported_main)]
pub mod foo {
pub fn bar() {
println!("Hello world!");
}
}
use foo::bar as main;