Update marker.rs
This commit is contained in:
parent
3626b66af0
commit
efc20deb57
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue