rust/tests/ui/entry-point/imported_main_const_forbidden.rs
2023-01-11 09:32:08 +00:00

7 lines
142 B
Rust

#![feature(imported_main)]
pub mod foo {
pub const BAR: usize = 42;
}
use foo::BAR as main; //~ ERROR `main` function not found in crate