Skip to content

Commit 72e79f0

Browse files
authored
Update marker.rs
1 parent 870dfed commit 72e79f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: core/src/marker.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,10 @@ marker_impls! {
292292
/// bound on type parameters:
293293
///
294294
/// ```
295+
/// #[derive(Clone)]
295296
/// struct MyStruct<T>;
296297
///
297-
/// impl<T: Copy> Copy for MyStruct<T> { }
298+
/// impl<T: Copy> Copy for MyStruct<T> { }
298299
/// ```
299300
///
300301
/// This isn't always desired. For example, shared references (`&T`) can be copied regardless of

0 commit comments

Comments
 (0)