Skip to content

Commit c59de1d

Browse files
authored
Merge pull request #166 from wackbyte/arbitrary-for-all-phantomdata
Widen implementation of `Arbitrary` for `PhantomData<A>`
2 parents 864f11d + 6204de5 commit c59de1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ impl<'a, A: Arbitrary<'a>> Arbitrary<'a> for iter::Empty<A> {
10971097
}
10981098
}
10991099

1100-
impl<'a, A: Arbitrary<'a>> Arbitrary<'a> for ::std::marker::PhantomData<A> {
1100+
impl<'a, A: ?Sized> Arbitrary<'a> for ::std::marker::PhantomData<A> {
11011101
fn arbitrary(_: &mut Unstructured<'a>) -> Result<Self> {
11021102
Ok(::std::marker::PhantomData)
11031103
}

0 commit comments

Comments
 (0)