Created
December 7, 2017 02:04
-
-
Save saethlin/9998719bf0a526858ec0c872087de874 to your computer and use it in GitHub Desktop.
What trait bounds? These trait bounds
This file contains hidden or 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]: no method named `for_each` found for type `std::boxed::Box<websocket::<unnamed>::Future<Error=websocket::WebSocketError, Item=(websocket::client::async::Framed<websocket::client::async::TlsStream<tokio_core::net::TcpStream>, websocket::async::MessageCodec<websocket::OwnedMessage>>, websocket::header::Headers)> + 'static>` in the current scope | |
--> src/main.rs:31:10 | |
| | |
31 | .for_each(|_| println!("test")); | |
| ^^^^^^^^ | |
| | |
= note: the method `for_each` exists but the following trait bounds were not satisfied: | |
`std::boxed::Box<websocket::<unnamed>::Future<Error=websocket::WebSocketError, Item=(websocket::client::async::Framed<websocket::client::async::TlsStream<tokio_core::net::TcpStream>, websocket::async::MessageCodec<websocket::OwnedMessage>>, websocket::header::Headers)>> : websocket::<unnamed>::Stream` | |
`std::boxed::Box<websocket::<unnamed>::Future<Error=websocket::WebSocketError, Item=(websocket::client::async::Framed<websocket::client::async::TlsStream<tokio_core::net::TcpStream>, websocket::async::MessageCodec<websocket::OwnedMessage>>, websocket::header::Headers)>> : std::iter::Iterator` | |
`&mut std::boxed::Box<websocket::<unnamed>::Future<Error=websocket::WebSocketError, Item=(websocket::client::async::Framed<websocket::client::async::TlsStream<tokio_core::net::TcpStream>, websocket::async::MessageCodec<websocket::OwnedMessage>>, websocket::header::Headers)> + 'static> : websocket::<unnamed>::Stream` | |
`&mut std::boxed::Box<websocket::<unnamed>::Future<Error=websocket::WebSocketError, Item=(websocket::client::async::Framed<websocket::client::async::TlsStream<tokio_core::net::TcpStream>, websocket::async::MessageCodec<websocket::OwnedMessage>>, websocket::header::Headers)> + 'static> : std::iter::Iterator` | |
`&mut websocket::<unnamed>::Future<Error=websocket::WebSocketError, Item=(websocket::client::async::Framed<websocket::client::async::TlsStream<tokio_core::net::TcpStream>, websocket::async::MessageCodec<websocket::OwnedMessage>>, websocket::header::Headers)> + 'static : websocket::<unnamed>::Stream` | |
`&mut websocket::<unnamed>::Future<Error=websocket::WebSocketError, Item=(websocket::client::async::Framed<websocket::client::async::TlsStream<tokio_core::net::TcpStream>, websocket::async::MessageCodec<websocket::OwnedMessage>>, websocket::header::Headers)> + 'static : std::iter::Iterator` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment