|
|
|
@ -1,14 +1,13 @@
|
|
|
|
|
Compiling futuretest v0.1.0 (file:///mnt/c/Users/Mahmoud/git/futuretest)
|
|
|
|
|
error[E0277]: the trait bound `(): futures::Future` is not satisfied
|
|
|
|
|
--> src/main.rs:17:1
|
|
|
|
|
Compiling futuretest v0.1.0 (file:///mnt/d/GIT/futuretest)
|
|
|
|
|
error[E0271]: type mismatch resolving `<futures::FutureResult<std::result::Result<(), _>, ()> as futures::Future>::Item == ()`
|
|
|
|
|
--> src/main.rs:17:23
|
|
|
|
|
|
|
|
|
|
|
17 | / fn test() -> MapErr<(), ()> {
|
|
|
|
|
18 | | future::ok(())
|
|
|
|
|
19 | | .map_err(|String| ())
|
|
|
|
|
20 | | }
|
|
|
|
|
| |_^ the trait `futures::Future` is not implemented for `()`
|
|
|
|
|
17 | fn create_future() -> impl Future<Item=(), Error=()> {
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found ()
|
|
|
|
|
|
|
|
|
|
|
= note: required by `futures::MapErr`
|
|
|
|
|
= note: expected type `std::result::Result<(), _>`
|
|
|
|
|
found type `()`
|
|
|
|
|
= note: the return type of a function must have a statically known size
|
|
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
|
|