summaryrefslogtreecommitdiffstats
path: root/tests/ui/entry-point/imported_main_const_forbidden.rs
blob: 1508280c0fa571bf85bfbfe81679050c0753249f (plain)
1
2
3
4
5
6
#![feature(imported_main)]
pub mod foo {
    pub const BAR: usize = 42;
}

use foo::BAR as main; //~ ERROR `main` function not found in crate