rust-fuzz / arbitrary

Generating structured data from arbitrary, unstructured input.

Home Page:https://docs.rs/arbitrary/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is `A: Arbitrary` bound needed for `PhantomData<A>`?

jeffy1009 opened this issue · comments

It prevents me from deriving Arbitrary from struct like the following:

#[derive(Arbitrary)]
struct MyStructPointer<'a> {
  ...
  _lifetime: PhantomData<&'a MyStruct>,
}

It works fine after removing the bound.

We should introduce a blanket impl