about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc_typeck/error_codes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_typeck/error_codes.rs b/src/librustc_typeck/error_codes.rs
index a2b1f16ef3d..093446d2853 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) {}
 }
 ```