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

7 lines
84 B
Rust
Raw Normal View History

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