add tests for imported_main

This commit is contained in:
Ralf Jung 2024-02-11 17:42:56 +01:00
parent a40a100e4b
commit b38d871eec
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#![feature(imported_main)]
pub mod foo {
pub fn mymain() {
println!("Hello, world!");
}
}
use foo::mymain as main;

View file

@ -0,0 +1 @@
Hello, world!