Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error[E0599]: no method named send found for struct futures_channel::mpsc::Sender<termion::event::Key> in the current scope #5

Closed
behnam opened this issue Nov 1, 2020 · 1 comment

Comments

@behnam
Copy link
Contributor

behnam commented Nov 1, 2020

With latest stable rustc/cargo:

~$ cargo --version
cargo 1.47.0 (f3c7e066a 2020-08-28)
~$ rustc --version
rustc 1.47.0 (18bf6b4f0 2020-10-07)

I get this error when compiling prodash as a dependency of crates-io-cli:

   Compiling prodash v4.1.0
error[E0599]: no method named `send` found for struct `futures_channel::mpsc::Sender<termion::event::Key>` in the current scope
   --> /Users/behnam/.cargo/registry/src/github.com-1ecc6299db9ec823/prodash-4.1.0/src/tui/engine.rs:147:37
    |
147 |             smol::block_on(key_send.send(key)).ok();
    |                                     ^^^^ method not found in `futures_channel::mpsc::Sender<termion::event::Key>`
    |
   ::: /Users/behnam/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-channel-0.3.7/src/mpsc/mod.rs:125:1
    |
125 | pub struct Sender<T>(Option<BoundedSenderInner<T>>);
    | ----------------------------------------------------
    | |
    | doesn't satisfy `_: futures_util::SinkExt<_>`
    | doesn't satisfy `_: futures_util::sink::Sink<_>`
    |
    = note: the method `send` exists but the following trait bounds were not satisfied:
            `futures_channel::mpsc::Sender<termion::event::Key>: futures_util::sink::Sink<_>`
            which is required by `futures_channel::mpsc::Sender<termion::event::Key>: futures_util::SinkExt<_>`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0599`.
error: could not compile `prodash`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `crates-io-cli v3.3.0`, intermediate artifacts can be found at `/var/folders/27/zbpxp72j1kxbyz2xj6jrfq380000gn/T/cargo-installnfxgAo`

Caused by:
  build failed
@Byron
Copy link
Owner

Byron commented Nov 2, 2020

Closing this one in favor of the one linked here.

@Byron Byron closed this as completed Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants