rustc: Lowercase "main function not found" error

This commit is contained in:
Brian Anderson 2011-08-10 21:51:05 -07:00
parent 0cddcac016
commit 4ff6763b60
2 changed files with 2 additions and 2 deletions

View File

@ -2698,7 +2698,7 @@ fn check_for_main_fn(tcx: &ty::ctxt, crate: &@ast::crate) {
if !tcx.sess.get_opts().library {
alt tcx.sess.get_main_id() {
some(id) { check_main_fn_ty(tcx, id); }
none. { tcx.sess.span_err(crate.span, "Main function not found"); }
none. { tcx.sess.span_err(crate.span, "main function not found"); }
}
}
}

View File

@ -1,2 +1,2 @@
// error-pattern:Main function not found
// error-pattern:main function not found
fn mian() { }