Closed
Description
When building spl-pod
together with the other Solana dependencies as part of the 2.x
crates and anchor 0.31.0
, the compilation fails like so:
error[E0276]: impl has stricter requirements than trait
--> /Users/dkf/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/spl-pod-0.5.1/src/error.rs:40:15
|
40 | + DecodeError<E>
| ^^^^^^^^^^^^^^ impl has extra requirement `E: DecodeError<E>`
Compiling oid-registry v0.6.1
Compiling rustls-platform-verifier v0.5.1
Compiling num-rational v0.2.4
Compiling rand v0.9.0
For more information about this error, try `rustc --explain E0276`.
The core reason seem to be in the error message, that there are versions of spl-pod
still being used that does not have this strict requirement.
The commit for the change was more than three months ago.
Any thoughts on a workaround for this? I can only think of relaxing the trait requirement in order to get past this as of now.
Metadata
Metadata
Assignees
Labels
No labels