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

10 lines
116 B
Rust

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