about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc_typeck/diagnostics.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs
index 887e15bd6b6..89b7e8c5747 100644
--- a/src/librustc_typeck/diagnostics.rs
+++ b/src/librustc_typeck/diagnostics.rs
@@ -218,9 +218,9 @@ differs from the behavior for `&T`, which is `Copy` when `T` is `Copy`).
 "##,
 
 E0206: r##"
-You can only implement `Copy` for a struct or enum. For example, both of the
-following examples will fail, because neither `i32` nor `&'static mut Bar` is
-a struct or enum:
+You can only implement `Copy` for a struct or enum. Both of the following
+examples will fail, because neither `i32` (primitive type) nor `&'static Bar`
+(reference to `Bar`) is a struct or enum:
 
 ```
 type Foo = i32;
@@ -228,7 +228,7 @@ impl Copy for Foo { } // error
 
 #[derive(Copy, Clone)]
 struct Bar;
-impl Copy for &'static mut Bar { } // error
+impl Copy for &'static Bar { } // error
 ```
 "##,