mod foo {
pub fn bar() {
}
}
pub use foo::bar as main;
does not compile due to
error: main function not found
aborting due to previous error
The expected behaviour would be that the compiler treats the global symbol main which resolves to foo::bar as the main function.