Skip to content

Commit 0ab1a76

Browse files
authored
Rollup merge of #122060 - clubby789:stabilize-imported-main, r=lcnr
Stabilize `imported_main` FCP: rust-lang/rust#28937 (comment) Docs: rust-lang/reference#1461
2 parents 8b2052a + dc54c77 commit 0ab1a76

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

test-cargo-miri/tests/main.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
#![feature(imported_main)]
2-
31
use cargo_miri_test::main;

tests/pass/imported_main.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(imported_main)]
2-
31
pub mod foo {
42
pub fn mymain() {
53
println!("Hello, world!");

tests/pass/main_fn.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(imported_main)]
2-
31
mod foo {
42
pub(crate) fn bar() {}
53
}

0 commit comments

Comments
 (0)