[INFO] crate serv 0.2.0 is already in cache [INFO] extracting crate serv 0.2.0 into work/ex/clippy-test-run/sources/stable/reg/serv/0.2.0 [INFO] extracting crate serv 0.2.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/serv/0.2.0 [INFO] validating manifest of serv-0.2.0 on toolchain stable [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of serv-0.2.0 on toolchain stable+rustflags=-Dclippy::into_iter_on_array [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing serv-0.2.0 [INFO] finished frobbing serv-0.2.0 [INFO] frobbed toml for serv-0.2.0 written to work/ex/clippy-test-run/sources/stable/reg/serv/0.2.0/Cargo.toml [INFO] started frobbing serv-0.2.0 [INFO] finished frobbing serv-0.2.0 [INFO] frobbed toml for serv-0.2.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/serv/0.2.0/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] linting serv-0.2.0 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-6/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/serv/0.2.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+stable" "clippy" "--frozen" "--all" "--all-targets"` [INFO] [stdout] bbdeb51d2170e09672cece9af6b9dd0ae6c75491619f4b4cf528adf9e263e60f [INFO] running `"docker" "start" "-a" "bbdeb51d2170e09672cece9af6b9dd0ae6c75491619f4b4cf528adf9e263e60f"` [INFO] [stderr] Checking serde_qs v0.4.5 [INFO] [stderr] Checking serv v0.2.0 (/opt/crater/workdir) [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/async.rs:111:30 [INFO] [stderr] | [INFO] [stderr] 111 | let status = match resp.is_ok() { [INFO] [stderr] | ______________________________^ [INFO] [stderr] 112 | | true => hyper::StatusCode::OK, [INFO] [stderr] 113 | | false => match resp.as_ref().err() { [INFO] [stderr] 114 | | // TODO: dispatch error type? [INFO] [stderr] 115 | | _ => hyper::StatusCode::BAD_REQUEST, [INFO] [stderr] 116 | | }, [INFO] [stderr] 117 | | }; [INFO] [stderr] | |_________________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::match_bool)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 111 | let status = if resp.is_ok() { hyper::StatusCode::OK } else { match resp.as_ref().err() { [INFO] [stderr] 112 | // TODO: dispatch error type? [INFO] [stderr] 113 | _ => hyper::StatusCode::BAD_REQUEST, [INFO] [stderr] 114 | } }; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/async.rs:111:30 [INFO] [stderr] | [INFO] [stderr] 111 | let status = match resp.is_ok() { [INFO] [stderr] | ______________________________^ [INFO] [stderr] 112 | | true => hyper::StatusCode::OK, [INFO] [stderr] 113 | | false => match resp.as_ref().err() { [INFO] [stderr] 114 | | // TODO: dispatch error type? [INFO] [stderr] 115 | | _ => hyper::StatusCode::BAD_REQUEST, [INFO] [stderr] 116 | | }, [INFO] [stderr] 117 | | }; [INFO] [stderr] | |_________________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::match_bool)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] help: consider using an if/else expression [INFO] [stderr] | [INFO] [stderr] 111 | let status = if resp.is_ok() { hyper::StatusCode::OK } else { match resp.as_ref().err() { [INFO] [stderr] 112 | // TODO: dispatch error type? [INFO] [stderr] 113 | _ => hyper::StatusCode::BAD_REQUEST, [INFO] [stderr] 114 | } }; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0277]: `std::rc::Rc` cannot be sent between threads safely [INFO] [stderr] --> examples/hello.rs:28:10 [INFO] [stderr] | [INFO] [stderr] 28 | .serve(move || Ok::<_, hyper::Error>(server.clone())) [INFO] [stderr] | ^^^^^ `std::rc::Rc` cannot be sent between threads safely [INFO] [stderr] | [INFO] [stderr] = help: within `hyper::server::conn::spawn_all::NewSvcTask, serv::Server, hyper::common::exec::Exec, hyper::server::conn::spawn_all::NoopWatcher>`, the trait `std::marker::Send` is not implemented for `std::rc::Rc` [INFO] [stderr] = note: required because it appears within the type `serv::Server` [INFO] [stderr] = note: required because it appears within the type `hyper::proto::h2::server::Server, serv::Server, hyper::Body, hyper::common::exec::Exec>` [INFO] [stderr] = note: required because it appears within the type `tokio::prelude::future::Either, hyper::Body, hyper::server::conn::AddrStream, hyper::proto::h1::role::Server>, hyper::proto::h2::server::Server, serv::Server, hyper::Body, hyper::common::exec::Exec>>` [INFO] [stderr] = note: required because it appears within the type `std::option::Option, hyper::Body, hyper::server::conn::AddrStream, hyper::proto::h1::role::Server>, hyper::proto::h2::server::Server, serv::Server, hyper::Body, hyper::common::exec::Exec>>>` [INFO] [stderr] = note: required because it appears within the type `hyper::server::conn::Connection` [INFO] [stderr] = note: required because it appears within the type `hyper::server::conn::upgrades::UpgradeableConnection` [INFO] [stderr] = note: required because it appears within the type `hyper::server::conn::spawn_all::State, serv::Server, hyper::common::exec::Exec, hyper::server::conn::spawn_all::NoopWatcher>` [INFO] [stderr] = note: required because it appears within the type `hyper::server::conn::spawn_all::NewSvcTask, serv::Server, hyper::common::exec::Exec, hyper::server::conn::spawn_all::NoopWatcher>` [INFO] [stderr] = note: required because of the requirements on the impl of `hyper::common::exec::NewSvcExec, serv::Server, hyper::common::exec::Exec, hyper::server::conn::spawn_all::NoopWatcher>` for `hyper::common::exec::Exec` [INFO] [stderr] [INFO] [stderr] error[E0277]: `(dyn hyper::rt::Future, Error=hyper::Error> + 'static)` cannot be sent between threads safely [INFO] [stderr] --> examples/hello.rs:28:10 [INFO] [stderr] | [INFO] [stderr] 28 | .serve(move || Ok::<_, hyper::Error>(server.clone())) [INFO] [stderr] | ^^^^^ `(dyn hyper::rt::Future, Error=hyper::Error> + 'static)` cannot be sent between threads safely [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::marker::Send` is not implemented for `(dyn hyper::rt::Future, Error=hyper::Error> + 'static)` [INFO] [stderr] = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<(dyn hyper::rt::Future, Error=hyper::Error> + 'static)>` [INFO] [stderr] = note: required because it appears within the type `std::boxed::Box<(dyn hyper::rt::Future, Error=hyper::Error> + 'static)>` [INFO] [stderr] = note: required because it appears within the type `hyper::proto::h2::server::H2StreamState, Error=hyper::Error> + 'static)>, hyper::Body>` [INFO] [stderr] = note: required because it appears within the type `hyper::proto::h2::server::H2Stream, Error=hyper::Error> + 'static)>, hyper::Body>` [INFO] [stderr] = note: required because of the requirements on the impl of `hyper::common::exec::H2Exec, Error=hyper::Error> + 'static)>, hyper::Body>` for `hyper::common::exec::Exec` [INFO] [stderr] [INFO] [stderr] error[E0277]: `std::rc::Rc` cannot be sent between threads safely [INFO] [stderr] --> examples/counter.rs:41:10 [INFO] [stderr] | [INFO] [stderr] 41 | .serve(move || Ok::<_, hyper::Error>(server.clone())) [INFO] [stderr] | ^^^^^ `std::rc::Rc` cannot be sent between threads safely [INFO] [stderr] | [INFO] [stderr] = help: within `hyper::server::conn::spawn_all::NewSvcTask, serv::Server, hyper::common::exec::Exec, hyper::server::conn::spawn_all::NoopWatcher>`, the trait `std::marker::Send` is not implemented for `std::rc::Rc` [INFO] [stderr] = note: required because it appears within the type `serv::Server` [INFO] [stderr] = note: required because it appears within the type `hyper::proto::h2::server::Server, serv::Server, hyper::Body, hyper::common::exec::Exec>` [INFO] [stderr] = note: required because it appears within the type `futures::future::Either, hyper::Body, hyper::server::conn::AddrStream, hyper::proto::h1::role::Server>, hyper::proto::h2::server::Server, serv::Server, hyper::Body, hyper::common::exec::Exec>>` [INFO] [stderr] = note: required because it appears within the type `std::option::Option, hyper::Body, hyper::server::conn::AddrStream, hyper::proto::h1::role::Server>, hyper::proto::h2::server::Server, serv::Server, hyper::Body, hyper::common::exec::Exec>>>` [INFO] [stderr] = note: required because it appears within the type `hyper::server::conn::Connection` [INFO] [stderr] = note: required because it appears within the type `hyper::server::conn::upgrades::UpgradeableConnection` [INFO] [stderr] = note: required because it appears within the type `hyper::server::conn::spawn_all::State, serv::Server, hyper::common::exec::Exec, hyper::server::conn::spawn_all::NoopWatcher>` [INFO] [stderr] = note: required because it appears within the type `hyper::server::conn::spawn_all::NewSvcTask, serv::Server, hyper::common::exec::Exec, hyper::server::conn::spawn_all::NoopWatcher>` [INFO] [stderr] = note: required because of the requirements on the impl of `hyper::common::exec::NewSvcExec, serv::Server, hyper::common::exec::Exec, hyper::server::conn::spawn_all::NoopWatcher>` for `hyper::common::exec::Exec` [INFO] [stderr] [INFO] [stderr] error[E0277]: `(dyn futures::Future, Error=hyper::Error> + 'static)` cannot be sent between threads safely [INFO] [stderr] --> examples/counter.rs:41:10 [INFO] [stderr] | [INFO] [stderr] 41 | .serve(move || Ok::<_, hyper::Error>(server.clone())) [INFO] [stderr] | ^^^^^ `(dyn futures::Future, Error=hyper::Error> + 'static)` cannot be sent between threads safely [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::marker::Send` is not implemented for `(dyn futures::Future, Error=hyper::Error> + 'static)` [INFO] [stderr] = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<(dyn futures::Future, Error=hyper::Error> + 'static)>` [INFO] [stderr] = note: required because it appears within the type `std::boxed::Box<(dyn futures::Future, Error=hyper::Error> + 'static)>` [INFO] [stderr] = note: required because it appears within the type `hyper::proto::h2::server::H2StreamState, Error=hyper::Error> + 'static)>, hyper::Body>` [INFO] [stderr] = note: required because it appears within the type `hyper::proto::h2::server::H2Stream, Error=hyper::Error> + 'static)>, hyper::Body>` [INFO] [stderr] = note: required because of the requirements on the impl of `hyper::common::exec::H2Exec, Error=hyper::Error> + 'static)>, hyper::Body>` for `hyper::common::exec::Exec` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `map_err` found for type `hyper::Server` in the current scope [INFO] [stderr] --> examples/hello.rs:29:10 [INFO] [stderr] | [INFO] [stderr] 29 | .map_err(|e| eprintln!("failed to serve: {:?}", e)); [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the method `map_err` exists but the following trait bounds were not satisfied: [INFO] [stderr] `hyper::Server : hyper::rt::Future` [INFO] [stderr] `&mut hyper::Server : hyper::rt::Future` [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] Some errors occurred: E0277, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error[E0277]: `std::rc::Rc` cannot be sent between threads safely [INFO] [stderr] --> examples/hello_async.rs:36:10 [INFO] [stderr] | [INFO] [stderr] 36 | .serve(move || Ok::<_, hyper::Error>(server.clone())) [INFO] [stderr] | ^^^^^ `std::rc::Rc` cannot be sent between threads safely [INFO] [stderr] | [INFO] [stderr] = help: within `hyper::server::conn::spawn_all::NewSvcTask, serv::Server, hyper::common::exec::Exec, hyper::server::conn::spawn_all::NoopWatcher>`, the trait `std::marker::Send` is not implemented for `std::rc::Rc` [INFO] [stderr] = note: required because it appears within the type `serv::Server` [INFO] [stderr] = note: required because it appears within the type `hyper::proto::h2::server::Server, serv::Server, hyper::Body, hyper::common::exec::Exec>` [INFO] [stderr] = note: required because it appears within the type `tokio::prelude::future::Either, hyper::Body, hyper::server::conn::AddrStream, hyper::proto::h1::role::Server>, hyper::proto::h2::server::Server, serv::Server, hyper::Body, hyper::common::exec::Exec>>` [INFO] [stderr] = note: required because it appears within the type `std::option::Option, hyper::Body, hyper::server::conn::AddrStream, hyper::proto::h1::role::Server>, hyper::proto::h2::server::Server, serv::Server, hyper::Body, hyper::common::exec::Exec>>>` [INFO] [stderr] = note: required because it appears within the type `hyper::server::conn::Connection` [INFO] [stderr] = note: required because it appears within the type `hyper::server::conn::upgrades::UpgradeableConnection` [INFO] [stderr] = note: required because it appears within the type `hyper::server::conn::spawn_all::State, serv::Server, hyper::common::exec::Exec, hyper::server::conn::spawn_all::NoopWatcher>` [INFO] [stderr] = note: required because it appears within the type `hyper::server::conn::spawn_all::NewSvcTask, serv::Server, hyper::common::exec::Exec, hyper::server::conn::spawn_all::NoopWatcher>` [INFO] [stderr] = note: required because of the requirements on the impl of `hyper::common::exec::NewSvcExec, serv::Server, hyper::common::exec::Exec, hyper::server::conn::spawn_all::NoopWatcher>` for `hyper::common::exec::Exec` [INFO] [stderr] [INFO] [stderr] error[E0277]: `(dyn hyper::rt::Future, Error=hyper::Error> + 'static)` cannot be sent between threads safely [INFO] [stderr] --> examples/hello_async.rs:36:10 [INFO] [stderr] | [INFO] [stderr] 36 | .serve(move || Ok::<_, hyper::Error>(server.clone())) [INFO] [stderr] | ^^^^^ `(dyn hyper::rt::Future, Error=hyper::Error> + 'static)` cannot be sent between threads safely [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::marker::Send` is not implemented for `(dyn hyper::rt::Future, Error=hyper::Error> + 'static)` [INFO] [stderr] = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<(dyn hyper::rt::Future, Error=hyper::Error> + 'static)>` [INFO] [stderr] = note: required because it appears within the type `std::boxed::Box<(dyn hyper::rt::Future, Error=hyper::Error> + 'static)>` [INFO] [stderr] = note: required because it appears within the type `hyper::proto::h2::server::H2StreamState, Error=hyper::Error> + 'static)>, hyper::Body>` [INFO] [stderr] = note: required because it appears within the type `hyper::proto::h2::server::H2Stream, Error=hyper::Error> + 'static)>, hyper::Body>` [INFO] [stderr] = note: required because of the requirements on the impl of `hyper::common::exec::H2Exec, Error=hyper::Error> + 'static)>, hyper::Body>` for `hyper::common::exec::Exec` [INFO] [stderr] [INFO] [stderr] error: Could not compile `serv`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0599]: no method named `map_err` found for type `hyper::Server` in the current scope [INFO] [stderr] --> examples/counter.rs:42:10 [INFO] [stderr] | [INFO] [stderr] 42 | .map_err(|e| eprintln!("failed to serve: {:?}", e)); [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the method `map_err` exists but the following trait bounds were not satisfied: [INFO] [stderr] `hyper::Server : futures::Future` [INFO] [stderr] `&mut hyper::Server : futures::Future` [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] Some errors occurred: E0277, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error[E0599]: no method named `map_err` found for type `hyper::Server` in the current scope [INFO] [stderr] --> examples/hello_async.rs:37:10 [INFO] [stderr] | [INFO] [stderr] 37 | .map_err(|e| eprintln!("failed to serve: {:?}", e)); [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the method `map_err` exists but the following trait bounds were not satisfied: [INFO] [stderr] `hyper::Server : hyper::rt::Future` [INFO] [stderr] `&mut hyper::Server : hyper::rt::Future` [INFO] [stderr] [INFO] [stderr] error: Could not compile `serv`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] Some errors occurred: E0277, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error: Could not compile `serv`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0277]: `std::rc::Rc` cannot be sent between threads safely [INFO] [stderr] --> examples/error.rs:53:10 [INFO] [stderr] | [INFO] [stderr] 53 | .serve(move || Ok::<_, hyper::Error>(server.clone())) [INFO] [stderr] | ^^^^^ `std::rc::Rc` cannot be sent between threads safely [INFO] [stderr] | [INFO] [stderr] = help: within `hyper::server::conn::spawn_all::NewSvcTask, serv::Server, hyper::common::exec::Exec, hyper::server::conn::spawn_all::NoopWatcher>`, the trait `std::marker::Send` is not implemented for `std::rc::Rc` [INFO] [stderr] = note: required because it appears within the type `serv::Server` [INFO] [stderr] = note: required because it appears within the type `hyper::proto::h2::server::Server, serv::Server, hyper::Body, hyper::common::exec::Exec>` [INFO] [stderr] = note: required because it appears within the type `tokio::prelude::future::Either, hyper::Body, hyper::server::conn::AddrStream, hyper::proto::h1::role::Server>, hyper::proto::h2::server::Server, serv::Server, hyper::Body, hyper::common::exec::Exec>>` [INFO] [stderr] = note: required because it appears within the type `std::option::Option, hyper::Body, hyper::server::conn::AddrStream, hyper::proto::h1::role::Server>, hyper::proto::h2::server::Server, serv::Server, hyper::Body, hyper::common::exec::Exec>>>` [INFO] [stderr] = note: required because it appears within the type `hyper::server::conn::Connection` [INFO] [stderr] = note: required because it appears within the type `hyper::server::conn::upgrades::UpgradeableConnection` [INFO] [stderr] = note: required because it appears within the type `hyper::server::conn::spawn_all::State, serv::Server, hyper::common::exec::Exec, hyper::server::conn::spawn_all::NoopWatcher>` [INFO] [stderr] = note: required because it appears within the type `hyper::server::conn::spawn_all::NewSvcTask, serv::Server, hyper::common::exec::Exec, hyper::server::conn::spawn_all::NoopWatcher>` [INFO] [stderr] = note: required because of the requirements on the impl of `hyper::common::exec::NewSvcExec, serv::Server, hyper::common::exec::Exec, hyper::server::conn::spawn_all::NoopWatcher>` for `hyper::common::exec::Exec` [INFO] [stderr] [INFO] [stderr] error[E0277]: `(dyn hyper::rt::Future, Error=hyper::Error> + 'static)` cannot be sent between threads safely [INFO] [stderr] --> examples/error.rs:53:10 [INFO] [stderr] | [INFO] [stderr] 53 | .serve(move || Ok::<_, hyper::Error>(server.clone())) [INFO] [stderr] | ^^^^^ `(dyn hyper::rt::Future, Error=hyper::Error> + 'static)` cannot be sent between threads safely [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::marker::Send` is not implemented for `(dyn hyper::rt::Future, Error=hyper::Error> + 'static)` [INFO] [stderr] = note: required because of the requirements on the impl of `std::marker::Send` for `std::ptr::Unique<(dyn hyper::rt::Future, Error=hyper::Error> + 'static)>` [INFO] [stderr] = note: required because it appears within the type `std::boxed::Box<(dyn hyper::rt::Future, Error=hyper::Error> + 'static)>` [INFO] [stderr] = note: required because it appears within the type `hyper::proto::h2::server::H2StreamState, Error=hyper::Error> + 'static)>, hyper::Body>` [INFO] [stderr] = note: required because it appears within the type `hyper::proto::h2::server::H2Stream, Error=hyper::Error> + 'static)>, hyper::Body>` [INFO] [stderr] = note: required because of the requirements on the impl of `hyper::common::exec::H2Exec, Error=hyper::Error> + 'static)>, hyper::Body>` for `hyper::common::exec::Exec` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `map_err` found for type `hyper::Server` in the current scope [INFO] [stderr] --> examples/error.rs:54:10 [INFO] [stderr] | [INFO] [stderr] 54 | .map_err(|e| eprintln!("failed to serve: {:?}", e)); [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: the method `map_err` exists but the following trait bounds were not satisfied: [INFO] [stderr] `hyper::Server : hyper::rt::Future` [INFO] [stderr] `&mut hyper::Server : hyper::rt::Future` [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] Some errors occurred: E0277, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error: Could not compile `serv`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "bbdeb51d2170e09672cece9af6b9dd0ae6c75491619f4b4cf528adf9e263e60f"` [INFO] running `"docker" "rm" "-f" "bbdeb51d2170e09672cece9af6b9dd0ae6c75491619f4b4cf528adf9e263e60f"` [INFO] [stdout] bbdeb51d2170e09672cece9af6b9dd0ae6c75491619f4b4cf528adf9e263e60f