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>
This commit is contained in:
Jan Riemer 2020-08-16 22:25:59 +02:00 committed by GitHub
parent 9061da2e14
commit 56daf63d10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -323,6 +323,7 @@ pub trait StructuralEq {
/// ```
/// # #![allow(dead_code)]
/// # struct PointList;
/// #[derive(Copy, Clone)]
/// struct PointListWrapper<'a> {
/// point_list_ref: &'a PointList,
/// }