diff --git a/src/librustc_typeck/astconv.rs b/src/librustc_typeck/astconv.rs index 9e8352fde8061..0aae19932dedd 100644 --- a/src/librustc_typeck/astconv.rs +++ b/src/librustc_typeck/astconv.rs @@ -962,7 +962,7 @@ impl<'o, 'gcx: 'tcx, 'tcx> AstConv<'gcx, 'tcx>+'o { pub fn prohibit_projection(&self, span: Span) { let mut err = struct_span_err!(self.tcx().sess, span, E0229, "associated type bindings are not allowed here"); - err.span_label(span, "associate type not allowed here").emit(); + err.span_label(span, "associated type not allowed here").emit(); } // Check a type Path and convert it to a Ty. diff --git a/src/test/compile-fail/E0229.rs b/src/test/compile-fail/E0229.rs index 6ff0baeeb4d4b..d15f9937f1382 100644 --- a/src/test/compile-fail/E0229.rs +++ b/src/test/compile-fail/E0229.rs @@ -22,7 +22,7 @@ impl Foo for isize { fn baz(x: &>::A) {} //~^ ERROR associated type bindings are not allowed here [E0229] -//~| NOTE associate type not allowed here +//~| NOTE associated type not allowed here fn main() { } diff --git a/src/test/compile-fail/issue-23543.rs b/src/test/compile-fail/issue-23543.rs index f1c559b6b889f..e1acc8eb475ac 100644 --- a/src/test/compile-fail/issue-23543.rs +++ b/src/test/compile-fail/issue-23543.rs @@ -16,7 +16,7 @@ pub trait D { fn f(self) where T: A; //~^ ERROR associated type bindings are not allowed here [E0229] - //~| NOTE associate type not allowed here + //~| NOTE associated type not allowed here } fn main() {} diff --git a/src/test/compile-fail/issue-23544.rs b/src/test/compile-fail/issue-23544.rs index 3959c22d1d489..3cd6f9ebc7185 100644 --- a/src/test/compile-fail/issue-23544.rs +++ b/src/test/compile-fail/issue-23544.rs @@ -14,7 +14,7 @@ pub trait D { fn f(self) where T: A; //~^ ERROR associated type bindings are not allowed here [E0229] - //~| NOTE associate type not allowed here + //~| NOTE associated type not allowed here } fn main() {}