Skip to content

Commit cad872a

Browse files
committed
Auto merge of #3295 - RalfJung:imported_main, r=RalfJung
add tests for imported_main
2 parents e2b42a5 + b38d871 commit cad872a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#![feature(imported_main)]
2+
3+
pub mod foo {
4+
pub fn mymain() {
5+
println!("Hello, world!");
6+
}
7+
}
8+
use foo::mymain as main;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello, world!

0 commit comments

Comments
 (0)