Skip to content

Instantly share code, notes, and snippets.

@sfackler
Created October 23, 2019 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sfackler/ce702e32e093da692d980cdd3206f684 to your computer and use it in GitHub Desktop.
Save sfackler/ce702e32e093da692d980cdd3206f684 to your computer and use it in GitHub Desktop.
error[E0277]: the trait bound `Bd: std::marker::Unpin` is not satisfied in `server::idle::__unpin_scope_TrackedBody::__TrackedBody<'_, Bd>`
--> sorcery2/src/server/idle.rs:47:20
|
47 | conn: http.serve_connection(io, service),
| ^^^^^^^^^^^^^^^^ within `server::idle::__unpin_scope_TrackedBody::__TrackedBody<'_, Bd>`, the trait `std::marker::Unpin` is not implemented for `Bd`
|
= help: consider adding a `where Bd: std::marker::Unpin` bound
= note: required because it appears within the type `server::idle::__unpin_scope_TrackedBody::__TrackedBody<'_, Bd>`
= note: required because of the requirements on the impl of `std::marker::Unpin` for `server::idle::TrackedBody<Bd>`
= note: required because of the requirements on the impl of `core::future::future::Future` for `hyper::proto::h2::server::H2Stream<server::idle::TrackedFuture<<S as tower_service::Service<http::request::Request<hyper::body::body::Body>>>::Future>, server::idle::TrackedBody<Bd>>`
= note: required because of the requirements on the impl of `hyper::common::exec::H2Exec<server::idle::TrackedFuture<<S as tower_service::Service<http::request::Request<hyper::body::body::Body>>>::Future>, server::idle::TrackedBody<Bd>>` for `hyper::common::exec::Exec`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment