Move no_main test to compile-fail
This commit is contained in:
parent
c93fc933bd
commit
d23e245f38
3 changed files with 2 additions and 3 deletions
2
tests/compile-fail/no_main.rs
Normal file
2
tests/compile-fail/no_main.rs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
// error-pattern: miri can only run programs that have a main function
|
||||
#![no_main]
|
||||
|
|
@ -1 +0,0 @@
|
|||
#![no_main]
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
error: miri can only run programs that have a main function
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue