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