mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Update marker.rs
This commit is contained in:
parent
3626b66af0
commit
efc20deb57
@ -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…
Reference in New Issue
Block a user