diff --git a/src/librustc_typeck/error_codes.rs b/src/librustc_typeck/error_codes.rs index a2b1f16ef3de7..093446d28533e 100644 --- a/src/librustc_typeck/error_codes.rs +++ b/src/librustc_typeck/error_codes.rs @@ -2473,7 +2473,7 @@ like in the following example: # trait Trait { # fn foo(&self); # } -impl Trait for Struct { +impl Trait for Foo { fn foo(self: &Bar) {} } ```