mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
rustc: Lowercase "main function not found" error
This commit is contained in:
@@ -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"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
// error-pattern:Main function not found
|
||||
// error-pattern:main function not found
|
||||
fn mian() { }
|
||||
Reference in New Issue
Block a user