Skip to content

Commit

Permalink
Add more generic assert_impl! tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nvzqz committed Dec 30, 2019
1 parent 3ff1e5f commit c38c3e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/trait_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ struct Box<T>(T);

assert_impl!(for(T: Clone) Box<T>: Clone);
assert_impl!(for(T: Clone + Send) Box<T>: Clone & Send);
assert_impl!(for(T) Box<T>: (From<T>) & (Into<T>));

assert_impl!(for(T) PhantomData<T>: Clone);
assert_impl!(for(T: Copy) T: Clone);
assert_impl!(for(T: ?Sized) T: Clone | !Clone);
assert_impl!(for('a, T: 'a) &'a mut T: !Copy);

0 comments on commit c38c3e8

Please sign in to comment.