Fix 'associate type' typo

This commit is contained in:
Charlie Somerville 2017-05-25 13:36:59 +10:00
parent 5b13bff520
commit 8019430b53
4 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

@ -22,7 +22,7 @@ impl Foo for isize {
fn baz<I>(x: &<I as Foo<A=Bar>>::A) {}
//~^ ERROR associated type bindings are not allowed here [E0229]
//~| NOTE associate type not allowed here
//~| NOTE associated type not allowed here
fn main() {
}

View File

@ -16,7 +16,7 @@ pub trait D {
fn f<T>(self)
where T<Bogus = Foo>: A;
//~^ ERROR associated type bindings are not allowed here [E0229]
//~| NOTE associate type not allowed here
//~| NOTE associated type not allowed here
}
fn main() {}

View File

@ -14,7 +14,7 @@ pub trait D {
fn f<T>(self)
where T<Bogus = Self::AlsoBogus>: A;
//~^ ERROR associated type bindings are not allowed here [E0229]
//~| NOTE associate type not allowed here
//~| NOTE associated type not allowed here
}
fn main() {}