rust/src/test/ui/multiple-main-2.rs

10 lines
118 B
Rust

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