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
Spanning and InputValue successfully derive(arbitrary::Arbitrary)). When I try to derive on Arguments, I get the following error:
error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'a` due to conflicting requirements
--> juniper/src/ast.rs:59:42
|
59 | #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
| ^^^^^^^^^^^^^^^^^^^^
|
note: first, the lifetime cannot outlive the lifetime `'a` as defined here...
--> juniper/src/ast.rs:60:22
|
60 | pub struct Arguments<'a, S> {
| ^^
note: ...so that the types are compatible
--> juniper/src/ast.rs:59:42
|
59 | #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
| ^^^^^^^^^^^^^^^^^^^^
= note: expected `<&'a str as Arbitrary<'_>>`
found `<&str as Arbitrary<'_>>`
note: but, the lifetime must be valid for the lifetime `'arbitrary` as defined here...
--> juniper/src/ast.rs:59:42
|
59 | #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
| ^^^^^^^^^^^^^^^^^^^^
note: ...so that the types are compatible
Can you confirm that you're using the latest version of arbitrary and arbitrary-derive?
It sort of looks like this might be an old version of the derive that tried to use 'a as the derived lifetime, which conflicted with already-existing 'a lifetimes.
If you can provide a complete test case that doesn't rely on any external code, that would be useful as well.
Hello! Bear with me as I am new to Arbitrary.
I have this type from juniper:
Spanning
andInputValue
successfullyderive(arbitrary::Arbitrary))
. When I try to derive onArguments
, I get the following error:Manually implenting it works:
Even though I am unblocked, I figured I'd file as one would expect the derive to work in this case.
The text was updated successfully, but these errors were encountered: