Skip to content

Commit a848f11

Browse files
E0248 Change in issue format
1 parent 4a99a9d commit a848f11

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/librustc_typeck/astconv.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -1582,9 +1582,11 @@ impl<'o, 'gcx: 'tcx, 'tcx> AstConv<'gcx, 'tcx>+'o {
15821582
return self.tcx().types.err;
15831583
}
15841584
_ => {
1585-
span_err!(tcx.sess, span, E0248,
1586-
"found value `{}` used as a type",
1587-
tcx.item_path_str(def.def_id()));
1585+
struct_span_err!(tcx.sess, span, E0248,
1586+
"found value `{}` used as a type",
1587+
tcx.item_path_str(def.def_id()))
1588+
.span_label(span, &format!("value used as a type"))
1589+
.emit();
15881590
return self.tcx().types.err;
15891591
}
15901592
}

0 commit comments

Comments
 (0)