Created
April 16, 2021 01:25
-
-
Save detly/e3d2fa6d9ac012d0008cb339c1e85dff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0599]: the method `context` exists for enum `std::result::Result<(), SendError<ZmqQMessage<'q>>>`, but its trait bounds were not satisfied | |
--> src/zsocket/callback_queue.rs:28:14 | |
| | |
28 | .context("Enqueueing message in ZmqQ") | |
| ^^^^^^^ method cannot be called on `std::result::Result<(), SendError<ZmqQMessage<'q>>>` due to unsatisfied trait bounds | |
| | |
::: /home/jason/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sync/mpsc/mod.rs:540:1 | |
| | |
540 | pub struct SendError<T>(#[stable(feature = "rust1", since = "1.0.0")] pub T); | |
| ----------------------------------------------------------------------------- | |
| | | |
| doesn't satisfy `SendError<ZmqQMessage<'_>>: Send` | |
| doesn't satisfy `SendError<ZmqQMessage<'_>>: Sync` | |
| doesn't satisfy `_: anyhow::context::ext::StdError` | |
| | |
::: /home/jason/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:241:1 | |
| | |
241 | pub enum Result<T, E> { | |
| --------------------- doesn't satisfy `_: anyhow::Context<(), SendError<ZmqQMessage<'_>>>` | |
| | |
= note: the following trait bounds were not satisfied: | |
`SendError<ZmqQMessage<'_>>: anyhow::context::ext::StdError` | |
which is required by `std::result::Result<(), SendError<ZmqQMessage<'_>>>: anyhow::Context<(), SendError<ZmqQMessage<'_>>>` | |
`SendError<ZmqQMessage<'_>>: Send` | |
which is required by `std::result::Result<(), SendError<ZmqQMessage<'_>>>: anyhow::Context<(), SendError<ZmqQMessage<'_>>>` | |
`SendError<ZmqQMessage<'_>>: Sync` | |
which is required by `std::result::Result<(), SendError<ZmqQMessage<'_>>>: anyhow::Context<(), SendError<ZmqQMessage<'_>>>` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment