rust/tests/ui/feature-gates/feature-gate-imported_main.rs

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

7 lines
149 B
Rust
Raw Normal View History

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