Skip to content

Commit c93fc93

Browse files
committed
Add ui test for early exiting if no main
1 parent 22e7a62 commit c93fc93

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/run-pass/no_main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#![no_main]

tests/run-pass/no_main.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
error: miri can only run programs that have a main function
2+

0 commit comments

Comments
 (0)