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
error[E0277]: the trait bound `Rfc5280: Arbitrary<'_>` is not satisfied
--> src/main.rs:4:7
|
4 | f(certificate);
| - ^^^^^^^^^^^ the trait `Arbitrary<'_>` is not implemented for `Rfc5280`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `Arbitrary<'a>`:
<&'a [u8] as Arbitrary<'a>>
<&'a str as Arbitrary<'a>>
<() as Arbitrary<'a>>
<(B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, A) as Arbitrary<'a>>
<(C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, B) as Arbitrary<'a>>
<(D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, C) as Arbitrary<'a>>
<(E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, D) as Arbitrary<'a>>
<(F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, E) as Arbitrary<'a>>
and 116 others
= note: required for `CertificateInner` to implement `Arbitrary<'_>`
note: required by a bound in `f`
--> src/main.rs:1:27
|
1 | fn f<'a>(_arbitrary: impl arbitrary::Arbitrary<'a>) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f`
On 0.2.0, it compiles fine.
I could submit a PR with a fix and a test to ensure Certificate still implements Arbitrary in the future if you would like.
The text was updated successfully, but these errors were encountered:
baloo
added a commit
to baloo/formats
that referenced
this issue
Jul 12, 2023
Arbitrary
support was introduced in0.2.0
but broke recently.Steps to Reproduce the Problem
0.2.3
:It fails to compile with the following error :
On
0.2.0
, it compiles fine.I could submit a PR with a fix and a test to ensure
Certificate
still implementsArbitrary
in the future if you would like.The text was updated successfully, but these errors were encountered: