summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rfc-1937-termination-trait/termination-trait-main-i32.rs
blob: 10f7d2215c35d2dd8606e4ec10e449e1c054ccfc (plain)
1
2
3
4
5
6
fn main() -> i32 {
//~^ ERROR `main` has invalid return type `i32`
//~| NOTE `main` can only return types that implement `Termination`
//~| HELP consider using `()`, or a `Result`
    0
}