rust/tests/ui/main-wrong-type.rs
2023-01-11 09:32:08 +00:00

9 lines
113 B
Rust

struct S {
x: isize,
y: isize,
}
fn main(foo: S) {
//~^ ERROR: `main` function has wrong type [E0580]
}