rust/src/test/compile-fail/bad-main.rs
Tim Chevalier 664d71f1f0 Improve a typechecker error message (wrong type for main())
As per #1903, state what type is expected for main().

Closes #1903
2012-03-11 20:55:19 -07:00

4 lines
66 B
Rust

// error-pattern:expecting `native fn([str])
fn main(x: int) { }