Skip to content

Commit

Permalink
Update marker.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
chancancode authored Sep 3, 2024
1 parent 870dfed commit 72e79f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72e79f0

Please sign in to comment.