Skip to content

Commit

Permalink
docs: add derive for struct
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
janriemer and poliorcetics committed Aug 16, 2020
1 parent 9061da2 commit 56daf63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/marker.rs
Expand Up @@ -323,6 +323,7 @@ pub trait StructuralEq {
/// ```
/// # #![allow(dead_code)]
/// # struct PointList;
/// #[derive(Copy, Clone)]
/// struct PointListWrapper<'a> {
/// point_list_ref: &'a PointList,
/// }
Expand Down

0 comments on commit 56daf63

Please sign in to comment.