rust/src/test/ui/rfc-1937-termination-trait/termination-trait-main-i32.rs
2018-12-25 21:08:33 -07:00

7 lines
202 B
Rust

fn main() -> i32 {
//~^ ERROR `main` has invalid return type `i32`
//~| NOTE `main` can only return types that implement `std::process::Termination`
//~| HELP consider using `()`, or a `Result`
0
}