Skip to content

Instantly share code, notes, and snippets.

@Xion
Created April 23, 2017 15:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Xion/df1fb7fffa1afb4bfbf2838b9c3fc4c1 to your computer and use it in GitHub Desktop.
Rust futures error
error: no method named `then` found for type `futures::AndThen<std::boxed::Box<futures::Future<Error=std::io::Error, Item=std::boxed::Box<futures::Stream<Error=std::io::Error, Item=()> + std::marker::Send>> + std::marker::Send>, std::boxed::Box<futures::Stream<Error=std::io::Error, Item=()> + std::marker::Send>, [closure@src/main.rs:100:19: 100:66]>` in the current scope
--> src/main.rs:101:10
|
101 | .then(|_| ());
| ^^^^
|
= note: the method `then` exists but the following trait bounds were not satisfied: `std::boxed::Box<futures::Stream<Error=std::io::Error, Item=()> + std::marker::Send> : futures::IntoFuture`, `futures::AndThen<std::boxed::Box<futures::Future<Error=std::io::Error, Item=std::boxed::Box<futures::Stream<Error=std::io::Error, Item=()> + std::marker::Send>> + std::marker::Send>, std::boxed::Box<futures::Stream<Error=std::io::Error, Item=()> + std::marker::Send>, [closure@src/main.rs:100:19: 100:66]> : futures::Future`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment