Skip to content

Commit d9f9e75

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 <poliorcetics@users.noreply.github.com>
1 parent 771a3c6 commit d9f9e75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/marker.rs

Lines changed: 1 addition & 0 deletions
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)