Lowercase the "wrong type in main fn" error

This commit is contained in:
Brian Anderson 2011-08-10 21:07:25 -07:00
parent 32438e82b3
commit 0f8e58e3ce
4 changed files with 4 additions and 4 deletions

View File

@ -2681,7 +2681,7 @@ fn check_main_fn_ty(tcx: &ty::ctxt, main_id: &ast::node_id) {
ok &=
num_args == 0u || num_args == 1u && arg_is_argv_ty(tcx, args.(0));
if !ok {
tcx.sess.err("Wrong type in main function: found " +
tcx.sess.err("wrong type in main function: found " +
ty_to_str(tcx, main_t));
}
}

View File

@ -1,3 +1,3 @@
// error-pattern:Wrong type in main function
// error-pattern:wrong type in main function
fn main(x: int) { }

View File

@ -1,2 +1,2 @@
// error-pattern:Wrong type in main function: found fn() -> char
// error-pattern:wrong type in main function: found fn() -> char
fn main() -> char { }

View File

@ -1,2 +1,2 @@
// error-pattern:Wrong type in main function: found fn(
// error-pattern:wrong type in main function: found fn(
fn main(foo: {x: int, y: int}) { }