1 2 3 4 5 6
pub mod foo { pub fn bar() { println!("Hello world!"); } } use foo::bar as main; //~ ERROR using an imported function as entry point