rust/tests/ui/entry-point/imported_main_const_forbidden.rs
2024-03-06 12:01:54 +00:00

6 lines
115 B
Rust

pub mod foo {
pub const BAR: usize = 42;
}
use foo::BAR as main; //~ ERROR `main` function not found in crate