Skip to content

Commit

Permalink
Fix 'associate type' typo
Browse files Browse the repository at this point in the history
  • Loading branch information
haileys committed May 25, 2017
1 parent 5b13bff commit 8019430
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/librustc_typeck/astconv.rs
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/test/compile-fail/E0229.rs
Expand Up @@ -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() {
}
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-23543.rs
Expand Up @@ -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() {}
2 changes: 1 addition & 1 deletion src/test/compile-fail/issue-23544.rs
Expand Up @@ -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() {}

0 comments on commit 8019430

Please sign in to comment.