Add a test for multiple main functions
This commit is contained in:
parent
3f816bdd57
commit
f05e2da709
7
src/test/compile-fail/multiple-main.rs
Normal file
7
src/test/compile-fail/multiple-main.rs
Normal file
@ -0,0 +1,7 @@
|
||||
fn main() {
|
||||
}
|
||||
|
||||
mod foo {
|
||||
fn main() { //~ ERROR multiple 'main' functions
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user