diff options
| author | hank-der-hafenarbeiter <kevinkielholz@web.de> | 2016-08-08 18:42:07 +0200 |
|---|---|---|
| committer | hank-der-hafenarbeiter <kevinkielholz@web.de> | 2016-08-08 20:51:44 +0200 |
| commit | a403ddf36dba3d3413c5a18268f357a6eee989ab (patch) | |
| tree | e112eba4b6f6c0782b99c20921d77a7feeafcf59 /src | |
| parent | b42a384a8078d79b299f2029b6c183b5e9288062 (diff) | |
| download | rust-a403ddf36dba3d3413c5a18268f357a6eee989ab.tar.gz rust-a403ddf36dba3d3413c5a18268f357a6eee989ab.zip | |
Updated E0221 message to new format!
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_typeck/astconv.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/librustc_typeck/astconv.rs b/src/librustc_typeck/astconv.rs index b4e9fb5c65b..eaed2ac22c4 100644 --- a/src/librustc_typeck/astconv.rs +++ b/src/librustc_typeck/astconv.rs @@ -1281,10 +1281,12 @@ impl<'o, 'gcx: 'tcx, 'tcx> AstConv<'gcx, 'tcx>+'o { } if bounds.len() > 1 { - let mut err = struct_span_err!(self.tcx().sess, span, E0221, - "ambiguous associated type `{}` in bounds of `{}`", - assoc_name, - ty_param_name); + let mut err = struct_span_err!( + self.tcx().sess, span, E0221, + "ambiguous associated type `{}` in bounds of `{}`", + assoc_name, + ty_param_name); + err.span_label(span, &format!("ambiguous associated type `{}`", assoc_name)); for bound in &bounds { span_note!(&mut err, span, |
