Skip to content

Commit 40b7ace

Browse files
author
Matthias Rabault
committed
Update E0229 to new format
1 parent 41fe4b7 commit 40b7ace

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustc/middle/astconv_util.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
4242

4343
pub fn prohibit_projection(self, span: Span)
4444
{
45-
span_err!(self.sess, span, E0229,
46-
"associated type bindings are not allowed here");
45+
let mut err = struct_span_err!(self.sess, span, E0229,
46+
"associated type bindings are not allowed here");
47+
err.span_label(span, &format!("associate type not allowed here")).emit();
4748
}
4849

4950
pub fn prim_ty_to_ty(self,

0 commit comments

Comments
 (0)