diff --git a/src/lib.rs b/src/lib.rs index 6f397de..6ea77e1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -78,6 +78,8 @@ impl_implicit_clone!( (), ); +impl ImplicitClone for [T; N] {} + macro_rules! impl_implicit_clone_for_tuple { ($($param:ident),+ $(,)?) => { impl<$($param: ImplicitClone),+> ImplicitClone for ($($param,)+) {} @@ -160,9 +162,12 @@ mod test { #[test] fn copy_types() { + fn assert_copy(_: T) {} + macro_rules! test_all { ($($t:ty),* $(,)?) => { $(host_library!(<$t>::default());)* + $(assert_copy(<$t>::default());)* }; }