rust/tests/ui/fn/bad-main.rs

2 lines
72 B
Rust

fn main(x: isize) { } //~ ERROR: `main` function has wrong type [E0580]