rust/tests/ui/entry-point/imported_main_from_inner_mod.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
137 B
Rust
Raw Normal View History

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