You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
derive(Arbitrary) currently won't derive Arbitrary if the type has a lifetime parameter in it. Most of the time this is fine, because Arbitrary: 'static. However, it seems like it would be possible to implement Arbitrary if all of the type parameters were set to 'static. This is somewhat inconsistent with Cow<'static, impl Arbitrary>: Arbitrary.
I haven't looked into how hard this would be, but I'm willing to mail a change adding this (maybe behind a Cargo feature?) if maintainers would consider it a useful addition.
The text was updated successfully, but these errors were encountered:
derive(Arbitrary)
currently won't deriveArbitrary
if the type has a lifetime parameter in it. Most of the time this is fine, becauseArbitrary: 'static
. However, it seems like it would be possible to implementArbitrary
if all of the type parameters were set to'static
. This is somewhat inconsistent withCow<'static, impl Arbitrary>: Arbitrary
.I haven't looked into how hard this would be, but I'm willing to mail a change adding this (maybe behind a Cargo feature?) if maintainers would consider it a useful addition.
The text was updated successfully, but these errors were encountered: