mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
docs: add another derive
for Copy
able struct
This adds another `derive` for a `Copy`able struct, so that we are consistent with `derive` annotations.
This commit is contained in:
parent
56daf63d10
commit
522d177f34
@ -291,6 +291,7 @@ pub trait StructuralEq {
|
||||
///
|
||||
/// ```
|
||||
/// # #[allow(dead_code)]
|
||||
/// #[derive(Copy, Clone)]
|
||||
/// struct Point {
|
||||
/// x: i32,
|
||||
/// y: i32,
|
||||
|
Loading…
Reference in New Issue
Block a user