提交 a403ddf3 编写于 作者: H hank-der-hafenarbeiter

Updated E0221 message to new format!

上级 b42a384a
...@@ -1281,10 +1281,12 @@ fn one_bound_for_assoc_type(&self, ...@@ -1281,10 +1281,12 @@ fn one_bound_for_assoc_type(&self,
} }
if bounds.len() > 1 { if bounds.len() > 1 {
let mut err = struct_span_err!(self.tcx().sess, span, E0221, let mut err = struct_span_err!(
"ambiguous associated type `{}` in bounds of `{}`", self.tcx().sess, span, E0221,
assoc_name, "ambiguous associated type `{}` in bounds of `{}`",
ty_param_name); assoc_name,
ty_param_name);
err.span_label(span, &format!("ambiguous associated type `{}`", assoc_name));
for bound in &bounds { for bound in &bounds {
span_note!(&mut err, span, span_note!(&mut err, span,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册