Created
September 18, 2016 22:50
-
-
Save Seeker14491/4e1391ac904fab4aabe06556605104b1 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
[futures_tut]$ cargo build | |
Updating git repository `https://github.com/tokio-rs/tokio-tls` | |
Updating git repository `https://github.com/alexcrichton/futures-rs` | |
Updating git repository `https://github.com/tokio-rs/tokio-core` | |
Updating registry `https://github.com/rust-lang/crates.io-index` | |
Compiling log v0.3.6 | |
Compiling bitflags v0.7.0 | |
Compiling bitflags v0.4.0 | |
Compiling slab v0.3.0 | |
Compiling openssl v0.8.3 | |
Compiling lazycell v0.4.0 | |
Compiling cfg-if v0.1.0 | |
Compiling void v1.0.2 | |
Compiling libc v0.2.16 | |
Compiling futures v0.1.1 (https://github.com/alexcrichton/futures-rs#1b05e0e2) | |
Compiling futures v0.1.1 | |
Compiling net2 v0.2.26 | |
Compiling scoped-tls v0.1.0 | |
Compiling semver v0.1.20 | |
Compiling pkg-config v0.3.8 | |
Compiling rustc_version v0.1.7 | |
Compiling lazy_static v0.2.1 | |
Compiling nix v0.6.0 | |
Compiling openssl-sys v0.7.17 | |
Compiling openssl-verify v0.2.0 | |
Compiling mio v0.6.0 | |
Compiling tokio-core v0.1.0 | |
Compiling tokio-core v0.1.0 (https://github.com/tokio-rs/tokio-core#418a9735) | |
Compiling tokio-tls v0.1.0 (https://github.com/tokio-rs/tokio-tls#3d49e52e) | |
Compiling futures_tut v0.1.0 (file:///home/seekr/projects/rust/single/futures_tut) | |
error: no method named `and_then` found for type `tokio_core::net::TcpStreamNew` in the current scope | |
--> src/main.rs:18:32 | |
| | |
18 | let tls_handshake = socket.and_then(|socket| { | |
| ^^^^^^^^ | |
| | |
= note: the method `and_then` exists but the following trait bounds were not satisfied: `tokio_core::net::TcpStreamNew : futures::Future` | |
= help: items from traits can only be used if the trait is in scope; the following trait is implemented but not in scope, perhaps add a `use` for it: | |
= help: candidate #1: `use futures::Future` | |
error[E0277]: the trait bound `[u8]: std::marker::Sized` is not satisfied | |
--> src/main.rs:30:13 | |
| | |
30 | let (_, data) = core.run(response).unwrap(); | |
| ^^^^ trait `[u8]: std::marker::Sized` not satisfied | |
| | |
= note: `[u8]` does not have a constant size known at compile-time | |
= note: all local variables must have a statically known size | |
error[E0277]: the trait bound `[u8]: std::marker::Sized` is not satisfied | |
--> src/main.rs:30:26 | |
| | |
30 | let (_, data) = core.run(response).unwrap(); | |
| ^^^ trait `[u8]: std::marker::Sized` not satisfied | |
| | |
= note: `[u8]` does not have a constant size known at compile-time | |
= note: required because it appears within the type `(_, [u8])` | |
= note: required by `std::result::Result` | |
error: aborting due to 3 previous errors | |
error: Could not compile `futures_tut`. | |
To learn more, run the command again with --verbose. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment