rust/src/test/ui/multiple-main-3.rs
2018-12-25 21:08:33 -07:00

12 lines
144 B
Rust

#![feature(main)]
#[main]
fn main1() {
}
mod foo {
#[main]
fn main2() { //~ ERROR multiple functions with a #[main] attribute
}
}