You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently using surf v1.0.2 with rustc 1.40.0-nightly (c27f7568b 2019-10-13).
Here's the error when I trying to run the example on the README.
error[E0277]: the trait bound `std::io::Empty: futures_io::if_std::AsyncRead` is not satisfied
--> /home/eric/.cargo/registry/src/github.com-1ecc6299db9ec823/surf-1.0.2/src/http_client/mod.rs:64:21
|
64 | reader: Box::new(std::io::empty()),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `futures_io::if_std::AsyncRead` is not implemented for `std::io::Empty`
|
= note: required for the cast to the object type `dyn futures_io::if_std::AsyncRead + std::marker::Send + std::marker::Unpin`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.
error: could not compile `surf`.
The text was updated successfully, but these errors were encountered:
I am currently using
surf v1.0.2
withrustc 1.40.0-nightly (c27f7568b 2019-10-13)
.Here's the error when I trying to run the example on the README.
The text was updated successfully, but these errors were encountered: