Auto merge of #3295 - RalfJung:imported_main, r=RalfJung

add tests for imported_main
This commit is contained in:
bors 2024-02-11 16:44:32 +00:00
commit cad872a70c
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!