mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
rustc: Lowercase "main function not found" error
This commit is contained in:
parent
0cddcac016
commit
4ff6763b60
@ -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() { }
|
Loading…
Reference in New Issue
Block a user