[INFO] cloning repository https://github.com/itsmontoya/tokio_learning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/itsmontoya/tokio_learning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fitsmontoya%2Ftokio_learning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fitsmontoya%2Ftokio_learning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1ef2f192055ffb041d21a0f4b29151fc24d1d3a4 [INFO] checking itsmontoya/tokio_learning against try#de39175d9e0f63ff8967b81f9639ba28d11ae6ef for pr-135331 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fitsmontoya%2Ftokio_learning" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/itsmontoya/tokio_learning on toolchain de39175d9e0f63ff8967b81f9639ba28d11ae6ef [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+de39175d9e0f63ff8967b81f9639ba28d11ae6ef" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/itsmontoya/tokio_learning [INFO] finished tweaking git repo https://github.com/itsmontoya/tokio_learning [INFO] tweaked toml for git repo https://github.com/itsmontoya/tokio_learning written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/itsmontoya/tokio_learning already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+de39175d9e0f63ff8967b81f9639ba28d11ae6ef" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.22 [INFO] [stderr] Downloaded net2 v0.2.27 [INFO] [stderr] Downloaded lazycell v0.4.0 [INFO] [stderr] Downloaded tokio-core v0.1.6 [INFO] [stderr] Downloaded tokio-io v0.1.1 [INFO] [stderr] Downloaded mio v0.6.7 [INFO] [stderr] Downloaded futures v0.1.13 [INFO] [stderr] Downloaded bytes v0.4.2 [INFO] [stderr] Downloaded iovec v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+de39175d9e0f63ff8967b81f9639ba28d11ae6ef" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5dcd534d5523f56894e4970a8d03536b41ad120083c2c8391ac242dac0865f48 [INFO] running `Command { std: "docker" "start" "-a" "5dcd534d5523f56894e4970a8d03536b41ad120083c2c8391ac242dac0865f48", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5dcd534d5523f56894e4970a8d03536b41ad120083c2c8391ac242dac0865f48", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5dcd534d5523f56894e4970a8d03536b41ad120083c2c8391ac242dac0865f48", kill_on_drop: false }` [INFO] [stdout] 5dcd534d5523f56894e4970a8d03536b41ad120083c2c8391ac242dac0865f48 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+de39175d9e0f63ff8967b81f9639ba28d11ae6ef" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 626bc4ff142309118f25df78d1250217d308481f0cf4cc2f2292b5e762f1e3a4 [INFO] running `Command { std: "docker" "start" "-a" "626bc4ff142309118f25df78d1250217d308481f0cf4cc2f2292b5e762f1e3a4", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking libc v0.2.22 [INFO] [stderr] Checking byteorder v1.0.0 [INFO] [stderr] Checking log v0.3.7 [INFO] [stderr] Checking cfg-if v0.1.0 [INFO] [stderr] Checking lazycell v0.4.0 [INFO] [stderr] Checking slab v0.3.0 [INFO] [stderr] Checking futures v0.1.13 [INFO] [stderr] Checking scoped-tls v0.1.0 [INFO] [stderr] Checking iovec v0.1.0 [INFO] [stderr] Checking net2 v0.2.27 [INFO] [stderr] Checking bytes v0.4.2 [INFO] [stderr] Checking mio v0.6.7 [INFO] [stderr] Checking tokio-io v0.1.1 [INFO] [stderr] Checking tokio-core v0.1.6 [INFO] [stderr] Checking helloWorld v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:86:90 [INFO] [stdout] | [INFO] [stdout] 86 | ...eam, addr: std::net::SocketAddr) -> Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 86 | fn handleIncoming(socket: tokio_core::net::TcpStream, addr: std::net::SocketAddr) -> Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `> as Future>::Error == ()` [INFO] [stdout] --> src/main.rs:72:22 [INFO] [stdout] | [INFO] [stdout] 72 | handle.spawn(msg); [INFO] [stdout] | ----- ^^^ expected `()`, found `Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Handle::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-core-0.1.6/src/reactor/mod.rs:680:34 [INFO] [stdout] | [INFO] [stdout] 679 | pub fn spawn(&self, f: F) [INFO] [stdout] | ----- required by a bound in this associated function [INFO] [stdout] 680 | where F: Future + 'static, [INFO] [stdout] | ^^^^^^^^ required by this bound in `Handle::spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): futures::IntoFuture` is not satisfied [INFO] [stdout] --> src/main.rs:70:34 [INFO] [stdout] | [INFO] [stdout] 70 | let done = socket.incoming().for_each(move |(socket, addr)| { [INFO] [stdout] | ^^^^^^^^ the trait `futures::Future` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `futures::Future`: [INFO] [stdout] &'a mut F [INFO] [stdout] AssertUnwindSafe [INFO] [stdout] BiLockAcquire [INFO] [stdout] Box [INFO] [stdout] Either [INFO] [stdout] Failed [INFO] [stdout] Fold [INFO] [stdout] ForEach [INFO] [stdout] and 54 others [INFO] [stdout] = note: required for `()` to implement `futures::IntoFuture` [INFO] [stdout] note: required by a bound in `futures::Stream::for_each` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-0.1.13/src/stream/mod.rs:687:18 [INFO] [stdout] | [INFO] [stdout] 685 | fn for_each(self, f: F) -> ForEach [INFO] [stdout] | -------- required by a bound in this associated function [INFO] [stdout] 686 | where F: FnMut(Self::Item) -> U, [INFO] [stdout] 687 | U: IntoFuture, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Stream::for_each` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:86:90 [INFO] [stdout] | [INFO] [stdout] 86 | ...eam, addr: std::net::SocketAddr) -> Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 86 | fn handleIncoming(socket: tokio_core::net::TcpStream, addr: std::net::SocketAddr) -> Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): futures::IntoFuture` is not satisfied [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | let msg = amt.then(move |result| { [INFO] [stdout] | ^^^^ the trait `futures::Future` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `futures::Future`: [INFO] [stdout] &'a mut F [INFO] [stdout] AssertUnwindSafe [INFO] [stdout] BiLockAcquire [INFO] [stdout] Box [INFO] [stdout] Either [INFO] [stdout] Failed [INFO] [stdout] Fold [INFO] [stdout] ForEach [INFO] [stdout] and 54 others [INFO] [stdout] = note: required for `()` to implement `futures::IntoFuture` [INFO] [stdout] note: required by a bound in `futures::Future::then` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-0.1.13/src/future/mod.rs:439:18 [INFO] [stdout] | [INFO] [stdout] 437 | fn then(self, f: F) -> Then [INFO] [stdout] | ---- required by a bound in this associated function [INFO] [stdout] 438 | where F: FnOnce(result::Result) -> B, [INFO] [stdout] 439 | B: IntoFuture, [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `Future::then` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): futures::Future` is not satisfied [INFO] [stdout] --> src/main.rs:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | Ok(Box::new(msg)) [INFO] [stdout] | ^^^^^^^^ the trait `futures::Future` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `futures::Future`: [INFO] [stdout] &'a mut F [INFO] [stdout] AssertUnwindSafe [INFO] [stdout] BiLockAcquire [INFO] [stdout] Box [INFO] [stdout] Either [INFO] [stdout] Failed [INFO] [stdout] Fold [INFO] [stdout] ForEach [INFO] [stdout] and 54 others [INFO] [stdout] = note: required for `()` to implement `futures::IntoFuture` [INFO] [stdout] note: required by a bound in `futures::Then` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-0.1.13/src/future/then.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Then where A: Future, B: IntoFuture { [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `Then` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): futures::Future` is not satisfied [INFO] [stdout] --> src/main.rs:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | Ok(Box::new(msg)) [INFO] [stdout] | ^^^^^^^^^^^^^ the trait `futures::Future` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `futures::Future`: [INFO] [stdout] &'a mut F [INFO] [stdout] AssertUnwindSafe [INFO] [stdout] BiLockAcquire [INFO] [stdout] Box [INFO] [stdout] Either [INFO] [stdout] Failed [INFO] [stdout] Fold [INFO] [stdout] ForEach [INFO] [stdout] and 54 others [INFO] [stdout] = note: required for `()` to implement `futures::IntoFuture` [INFO] [stdout] note: required by a bound in `futures::Then` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-0.1.13/src/future/then.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Then where A: Future, B: IntoFuture { [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `Then` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): futures::Future` is not satisfied [INFO] [stdout] --> src/main.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | Ok(Box::new(msg)) [INFO] [stdout] | ^^ the trait `futures::Future` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `futures::Future`: [INFO] [stdout] &'a mut F [INFO] [stdout] AssertUnwindSafe [INFO] [stdout] BiLockAcquire [INFO] [stdout] Box [INFO] [stdout] Either [INFO] [stdout] Failed [INFO] [stdout] Fold [INFO] [stdout] ForEach [INFO] [stdout] and 54 others [INFO] [stdout] = note: required for `()` to implement `futures::IntoFuture` [INFO] [stdout] note: required by a bound in `futures::Then` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-0.1.13/src/future/then.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Then where A: Future, B: IntoFuture { [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `Then` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): futures::Future` is not satisfied [INFO] [stdout] --> src/main.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | Ok(Box::new(msg)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `futures::Future` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `futures::Future`: [INFO] [stdout] &'a mut F [INFO] [stdout] AssertUnwindSafe [INFO] [stdout] BiLockAcquire [INFO] [stdout] Box [INFO] [stdout] Either [INFO] [stdout] Failed [INFO] [stdout] Fold [INFO] [stdout] ForEach [INFO] [stdout] and 54 others [INFO] [stdout] = note: required for `()` to implement `futures::IntoFuture` [INFO] [stdout] note: required by a bound in `futures::Then` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-0.1.13/src/future/then.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Then where A: Future, B: IntoFuture { [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `Then` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `> as Future>::Error == ()` [INFO] [stdout] --> src/main.rs:72:22 [INFO] [stdout] | [INFO] [stdout] 72 | handle.spawn(msg); [INFO] [stdout] | ----- ^^^ expected `()`, found `Error` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Handle::spawn` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-core-0.1.6/src/reactor/mod.rs:680:34 [INFO] [stdout] | [INFO] [stdout] 679 | pub fn spawn(&self, f: F) [INFO] [stdout] | ----- required by a bound in this associated function [INFO] [stdout] 680 | where F: Future + 'static, [INFO] [stdout] | ^^^^^^^^ required by this bound in `Handle::spawn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): futures::IntoFuture` is not satisfied [INFO] [stdout] --> src/main.rs:70:34 [INFO] [stdout] | [INFO] [stdout] 70 | let done = socket.incoming().for_each(move |(socket, addr)| { [INFO] [stdout] | ^^^^^^^^ the trait `futures::Future` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `futures::Future`: [INFO] [stdout] &'a mut F [INFO] [stdout] AssertUnwindSafe [INFO] [stdout] BiLockAcquire [INFO] [stdout] Box [INFO] [stdout] Either [INFO] [stdout] Failed [INFO] [stdout] Fold [INFO] [stdout] ForEach [INFO] [stdout] and 54 others [INFO] [stdout] = note: required for `()` to implement `futures::IntoFuture` [INFO] [stdout] note: required by a bound in `futures::Stream::for_each` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-0.1.13/src/stream/mod.rs:687:18 [INFO] [stdout] | [INFO] [stdout] 685 | fn for_each(self, f: F) -> ForEach [INFO] [stdout] | -------- required by a bound in this associated function [INFO] [stdout] 686 | where F: FnMut(Self::Item) -> U, [INFO] [stdout] 687 | U: IntoFuture, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Stream::for_each` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 86 | fn handleIncoming(socket: tokio_core::net::TcpStream, addr: std::net::SocketAddr) -> Box... [INFO] [stdout] | ----------------------------------------------------------- expected `Box<(dyn futures::Future + 'static)>` because of return type [INFO] [stdout] ... [INFO] [stdout] 92 | let msg = amt.then(move |result| { [INFO] [stdout] | ------------- the found closure [INFO] [stdout] ... [INFO] [stdout] 99 | Ok(Box::new(msg)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected `Box>`, found `Result, ...>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box<(dyn futures::Future + 'static)>` [INFO] [stdout] found enum `Result, ...>, ..., ...>>, ...>` [INFO] [stdout] = note: the full type name has been written to '/opt/rustwide/target/debug/deps/helloWorld-2cff0b6b79ca998e.long-type-2443300040253812508.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): futures::IntoFuture` is not satisfied [INFO] [stdout] --> src/main.rs:92:19 [INFO] [stdout] | [INFO] [stdout] 92 | let msg = amt.then(move |result| { [INFO] [stdout] | ^^^^ the trait `futures::Future` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `futures::Future`: [INFO] [stdout] &'a mut F [INFO] [stdout] AssertUnwindSafe [INFO] [stdout] BiLockAcquire [INFO] [stdout] Box [INFO] [stdout] Either [INFO] [stdout] Failed [INFO] [stdout] Fold [INFO] [stdout] ForEach [INFO] [stdout] and 54 others [INFO] [stdout] = note: required for `()` to implement `futures::IntoFuture` [INFO] [stdout] note: required by a bound in `futures::Future::then` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-0.1.13/src/future/mod.rs:439:18 [INFO] [stdout] | [INFO] [stdout] 437 | fn then(self, f: F) -> Then [INFO] [stdout] | ---- required by a bound in this associated function [INFO] [stdout] 438 | where F: FnOnce(result::Result) -> B, [INFO] [stdout] 439 | B: IntoFuture, [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `Future::then` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): futures::Future` is not satisfied [INFO] [stdout] --> src/main.rs:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | Ok(Box::new(msg)) [INFO] [stdout] | ^^^^^^^^ the trait `futures::Future` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `futures::Future`: [INFO] [stdout] &'a mut F [INFO] [stdout] AssertUnwindSafe [INFO] [stdout] BiLockAcquire [INFO] [stdout] Box [INFO] [stdout] Either [INFO] [stdout] Failed [INFO] [stdout] Fold [INFO] [stdout] ForEach [INFO] [stdout] and 54 others [INFO] [stdout] = note: required for `()` to implement `futures::IntoFuture` [INFO] [stdout] note: required by a bound in `futures::Then` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-0.1.13/src/future/then.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Then where A: Future, B: IntoFuture { [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `Then` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): futures::Future` is not satisfied [INFO] [stdout] --> src/main.rs:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | Ok(Box::new(msg)) [INFO] [stdout] | ^^^^^^^^^^^^^ the trait `futures::Future` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `futures::Future`: [INFO] [stdout] &'a mut F [INFO] [stdout] AssertUnwindSafe [INFO] [stdout] BiLockAcquire [INFO] [stdout] Box [INFO] [stdout] Either [INFO] [stdout] Failed [INFO] [stdout] Fold [INFO] [stdout] ForEach [INFO] [stdout] and 54 others [INFO] [stdout] = note: required for `()` to implement `futures::IntoFuture` [INFO] [stdout] note: required by a bound in `futures::Then` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-0.1.13/src/future/then.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Then where A: Future, B: IntoFuture { [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `Then` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): futures::Future` is not satisfied [INFO] [stdout] --> src/main.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | Ok(Box::new(msg)) [INFO] [stdout] | ^^ the trait `futures::Future` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `futures::Future`: [INFO] [stdout] &'a mut F [INFO] [stdout] AssertUnwindSafe [INFO] [stdout] BiLockAcquire [INFO] [stdout] Box [INFO] [stdout] Either [INFO] [stdout] Failed [INFO] [stdout] Fold [INFO] [stdout] ForEach [INFO] [stdout] and 54 others [INFO] [stdout] = note: required for `()` to implement `futures::IntoFuture` [INFO] [stdout] note: required by a bound in `futures::Then` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-0.1.13/src/future/then.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Then where A: Future, B: IntoFuture { [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `Then` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `helloWorld` (bin "helloWorld" test) due to 8 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the trait bound `(): futures::Future` is not satisfied [INFO] [stdout] --> src/main.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 99 | Ok(Box::new(msg)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `futures::Future` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `futures::Future`: [INFO] [stdout] &'a mut F [INFO] [stdout] AssertUnwindSafe [INFO] [stdout] BiLockAcquire [INFO] [stdout] Box [INFO] [stdout] Either [INFO] [stdout] Failed [INFO] [stdout] Fold [INFO] [stdout] ForEach [INFO] [stdout] and 54 others [INFO] [stdout] = note: required for `()` to implement `futures::IntoFuture` [INFO] [stdout] note: required by a bound in `futures::Then` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-0.1.13/src/future/then.rs:10:46 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Then where A: Future, B: IntoFuture { [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `Then` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:99:1 [INFO] [stdout] | [INFO] [stdout] 86 | fn handleIncoming(socket: tokio_core::net::TcpStream, addr: std::net::SocketAddr) -> Box... [INFO] [stdout] | ----------------------------------------------------------- expected `Box<(dyn futures::Future + 'static)>` because of return type [INFO] [stdout] ... [INFO] [stdout] 92 | let msg = amt.then(move |result| { [INFO] [stdout] | ------------- the found closure [INFO] [stdout] ... [INFO] [stdout] 99 | Ok(Box::new(msg)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ expected `Box>`, found `Result, ...>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Box<(dyn futures::Future + 'static)>` [INFO] [stdout] found enum `Result, ...>, ..., ...>>, ...>` [INFO] [stdout] = note: the full type name has been written to '/opt/rustwide/target/debug/deps/helloWorld-b24981d7df88fc86.long-type-18272285806365966807.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: could not compile `helloWorld` (bin "helloWorld") due to 8 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "626bc4ff142309118f25df78d1250217d308481f0cf4cc2f2292b5e762f1e3a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "626bc4ff142309118f25df78d1250217d308481f0cf4cc2f2292b5e762f1e3a4", kill_on_drop: false }` [INFO] [stdout] 626bc4ff142309118f25df78d1250217d308481f0cf4cc2f2292b5e762f1e3a4