Skip to content

Commit

Permalink
Auto merge of #3295 - RalfJung:imported_main, r=RalfJung
Browse files Browse the repository at this point in the history
add tests for imported_main
  • Loading branch information
bors committed Feb 11, 2024
2 parents 36651cb + d89df61 commit 877d78e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/pass/imported_main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#![feature(imported_main)]

pub mod foo {
pub fn mymain() {
println!("Hello, world!");
}
}
use foo::mymain as main;
1 change: 1 addition & 0 deletions tests/pass/imported_main.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello, world!

0 comments on commit 877d78e

Please sign in to comment.