E0248 Change in issue format
This commit is contained in:
parent
4a99a9de03
commit
a848f11007
@ -1582,9 +1582,11 @@ impl<'o, 'gcx: 'tcx, 'tcx> AstConv<'gcx, 'tcx>+'o {
|
||||
return self.tcx().types.err;
|
||||
}
|
||||
_ => {
|
||||
span_err!(tcx.sess, span, E0248,
|
||||
"found value `{}` used as a type",
|
||||
tcx.item_path_str(def.def_id()));
|
||||
struct_span_err!(tcx.sess, span, E0248,
|
||||
"found value `{}` used as a type",
|
||||
tcx.item_path_str(def.def_id()))
|
||||
.span_label(span, &format!("value used as a type"))
|
||||
.emit();
|
||||
return self.tcx().types.err;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user