Skip to content

Commit a403ddf

Browse files
Updated E0221 message to new format!
1 parent b42a384 commit a403ddf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/librustc_typeck/astconv.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,10 +1281,12 @@ impl<'o, 'gcx: 'tcx, 'tcx> AstConv<'gcx, 'tcx>+'o {
12811281
}
12821282

12831283
if bounds.len() > 1 {
1284-
let mut err = struct_span_err!(self.tcx().sess, span, E0221,
1285-
"ambiguous associated type `{}` in bounds of `{}`",
1286-
assoc_name,
1287-
ty_param_name);
1284+
let mut err = struct_span_err!(
1285+
self.tcx().sess, span, E0221,
1286+
"ambiguous associated type `{}` in bounds of `{}`",
1287+
assoc_name,
1288+
ty_param_name);
1289+
err.span_label(span, &format!("ambiguous associated type `{}`", assoc_name));
12881290

12891291
for bound in &bounds {
12901292
span_note!(&mut err, span,

0 commit comments

Comments
 (0)