Skip to content

Commit 56daf63

Browse files
docs: add derive for struct
Code blocks in doc comments are compiled and run, so we show `Copy` works in this example. Co-authored-by: Poliorcetics <[email protected]>
1 parent 9061da2 commit 56daf63

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/marker.rs

+1
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ pub trait StructuralEq {
323323
/// ```
324324
/// # #![allow(dead_code)]
325325
/// # struct PointList;
326+
/// #[derive(Copy, Clone)]
326327
/// struct PointListWrapper<'a> {
327328
/// point_list_ref: &'a PointList,
328329
/// }

0 commit comments

Comments
 (0)