rust/src/test/compile-fail/multiple-main.rs

7 lines
84 B
Rust
Raw Normal View History

2012-11-07 14:30:51 -06:00
fn main() {
}
mod foo {
fn main() { //~ ERROR multiple 'main' functions
}
}