rust/src/test/ui/rfc-1937-termination-trait/termination-trait-main-i32.rs

7 lines
202 B
Rust
Raw Normal View History

fn main() -> i32 {
//~^ ERROR `main` has invalid return type `i32`
2018-03-25 01:29:57 -05:00
//~| NOTE `main` can only return types that implement `std::process::Termination`
//~| HELP consider using `()`, or a `Result`
2017-12-21 18:11:57 -06:00
0
}