Closed
Description
When using the sentry 0.8.0 crate with my project using error-chain 0.12.0, an error happened attempting to display the error:
error[E0277]: the trait bound `errors::Error: error_chain::ChainedError` is not satisfied
--> src/client.rs:468:21
|
468 | capture_error_chain(&e);
| ^^^^^^^^^^^^^^^^^^^ the trait `error_chain::ChainedError` is not implemented for `errors::Error`
|
= note: required by `sentry::integrations::error_chain::capture_error_chain
The errors::Error object did implement the trait, however it was the 0.12 version of the trait, and sentry 0.8.0 was built with error-chain 0.11.0. I got lucky in guessing this was the issue after a few hours of tweaking things and trying to understand how the trait wasn't being satisfied.
Ideally the rust compiler should note the trait version mismatch somehow.
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsCategory: An issue proposing an enhancement or a PR with one.Diagnostics: Confusing error or lint that should be reworked.Diagnostics: Errors or lints caused be the use of two different crate versions.Relevant to the compiler team, which will review and decide on the PR/issue.