From 295877f0db295fffb086d0a7725a680670adf9f7 Mon Sep 17 00:00:00 2001 From: Cecile Tonglet Date: Sun, 5 Nov 2023 18:07:19 +0100 Subject: [PATCH] Improve the test to make sure we impl ImplicitClone on Copy types --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ea204f6..a6ddf8c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -138,7 +138,7 @@ macro_rules! imap_deconstruct { mod test { use super::*; - fn host_library(value: &T) -> T { + fn host_library(value: &T) -> T { value.clone() } @@ -152,7 +152,7 @@ mod test { #[test] fn custom() { - #[derive(Clone)] + #[derive(Clone, Copy)] struct ImplicitCloneType; impl ImplicitClone for ImplicitCloneType {}