Update E0132 to new format
This commit is contained in:
parent
d603892ea7
commit
9b690c94f0
1 changed files with 5 additions and 2 deletions
|
|
@ -261,8 +261,11 @@ fn check_start_fn_ty(ccx: &CrateCtxt,
|
|||
match it.node {
|
||||
hir::ItemFn(_,_,_,_,ref ps,_)
|
||||
if ps.is_parameterized() => {
|
||||
span_err!(tcx.sess, start_span, E0132,
|
||||
"start function is not allowed to have type parameters");
|
||||
struct_span_err!(tcx.sess, start_span, E0132,
|
||||
"start function is not allowed to have type parameters")
|
||||
.span_label(ps.span().unwrap(),
|
||||
&format!("start function cannot have type parameters"))
|
||||
.emit();
|
||||
return;
|
||||
}
|
||||
_ => ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue