rust/tests/ui/feature-gates/feature-gate-imported_main.rs
2023-01-11 09:32:08 +00:00

7 lines
149 B
Rust

pub mod foo {
pub fn bar() {
println!("Hello world!");
}
}
use foo::bar as main; //~ ERROR using an imported function as entry point