Closed Wilfred closed 4 years ago
It would be nice to be able to use quickcheck with (e.g.) Wrapping<u8>. I'm not sure I can fix this in my own code, adding
Wrapping<u8>
impl Arbitrary for Wrapping<u8> { fn arbitrary<G: Gen>(g: &mut G) -> Wrapping<u8> { Wrapping(Arbitrary::arbitrary(g)) } }
generates a compile error because neither Arbitrary nor Wrapping were defined by me.
Arbitrary
Wrapping
Looks like an Arbitrary impl was added for Wrapping.
It would be nice to be able to use quickcheck with (e.g.)
Wrapping<u8>
. I'm not sure I can fix this in my own code, addinggenerates a compile error because neither
Arbitrary
norWrapping
were defined by me.