Fix 'associate type' typo
This commit is contained in:
parent
5b13bff520
commit
8019430b53
@ -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.
|
||||
|
@ -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() {
|
||||
}
|
||||
|
@ -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() {}
|
||||
|
@ -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() {}
|
||||
|
Loading…
Reference in New Issue
Block a user