summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-imported_main.rs
blob: b351d0d0e9a50a63d62ef55790497cc9adab9a23 (plain)
1
2
3
4
5
6
pub mod foo {
    pub fn bar() {
        println!("Hello world!");
    }
}
use foo::bar as main; //~ ERROR using an imported function as entry point