Skip to content

Commit

Permalink
Improve the test to make sure we impl ImplicitClone on Copy types
Browse files Browse the repository at this point in the history
  • Loading branch information
cecton committed Nov 5, 2023
1 parent c281d34 commit 295877f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ macro_rules! imap_deconstruct {
mod test {
use super::*;

fn host_library<T: ImplicitClone>(value: &T) -> T {
fn host_library<T: ImplicitClone + Copy>(value: &T) -> T {
value.clone()
}

Expand All @@ -152,7 +152,7 @@ mod test {

#[test]
fn custom() {
#[derive(Clone)]
#[derive(Clone, Copy)]
struct ImplicitCloneType;

impl ImplicitClone for ImplicitCloneType {}
Expand Down

0 comments on commit 295877f

Please sign in to comment.