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.
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() {
}
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() {}
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() {}