diff options
| -rw-r--r-- | library/core/src/marker.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/core/src/marker.rs b/library/core/src/marker.rs index dfc988c885e..62f35c1bfa2 100644 --- a/library/core/src/marker.rs +++ b/library/core/src/marker.rs @@ -292,9 +292,10 @@ marker_impls! { /// bound on type parameters: /// /// ``` +/// #[derive(Clone)] /// struct MyStruct<T>; /// -/// impl<T: Copy> Copy for MyStruct<T> { } +/// impl<T: Copy> Copy for MyStruct<T> { } /// ``` /// /// This isn't always desired. For example, shared references (`&T`) can be copied regardless of |
