greyblake / nutype

Rust newtype with guarantees 🇺🇦 🦀

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Derive Arbitrary for newtype with generics

greyblake opened this issue · comments

The following should compile and work as expected.

#[nutype(
    derive(Arbitrary)
)]
struct Collection<T: Arbitrary>(Vec<T>);

Make sure to have a proper test coverage