]> git.lizzy.rs Git - rust.git/commitdiff
Fix 'associate type' typo
authorCharlie Somerville <charlie@charlie.bz>
Thu, 25 May 2017 03:36:59 +0000 (13:36 +1000)
committerCharlie Somerville <charlie@charlie.bz>
Thu, 25 May 2017 03:36:59 +0000 (13:36 +1000)
src/librustc_typeck/astconv.rs
src/test/compile-fail/E0229.rs
src/test/compile-fail/issue-23543.rs
src/test/compile-fail/issue-23544.rs

index 9e8352fde80617f1d7fb084e66b5ba1811897a15..0aae19932dedd907cef887c54794cbc149f796b8 100644 (file)
@@ -962,7 +962,7 @@ pub fn prohibit_type_params(&self, segments: &[hir::PathSegment]) {
     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.
index 6ff0baeeb4d4bd25c16e420febcebf7f2fb41af3..d15f9937f13828faff915c8a195fc907cd7b12b9 100644 (file)
@@ -22,7 +22,7 @@ fn boo(&self) -> usize { 42 }
 
 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() {
 }
index f1c559b6b889f207cdc7e4542cd60de3895775a3..e1acc8eb475ac1cfe883573d5cba87425e2a4611 100644 (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() {}
index 3959c22d1d489384a9baccac9b838ad467fcd2af..3cd6f9ebc7185b8992c53c8cc37c0d29257eb549 100644 (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() {}