2017-12-10 15:52:10 -06:00
|
|
|
Compiling futuretest v0.1.0 (file:///mnt/d/GIT/futuretest)
|
2017-12-10 15:53:33 -06:00
|
|
|
error[E0271]: type mismatch resolving `<futures::FutureResult<std::result::Result<(), _>, ()> as futures::Future>::Item == ()`
|
|
|
|
--> src/main.rs:17:23
|
|
|
|
|
|
|
|
|
17 | fn create_future() -> impl Future<Item=(), Error=()> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `std::result::Result`, found ()
|
|
|
|
|
|
|
|
|
= note: expected type `std::result::Result<(), _>`
|
|
|
|
found type `()`
|
|
|
|
= note: the return type of a function must have a statically known size
|
2017-12-10 15:52:10 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
2017-12-09 12:58:25 -06:00
|
|
|
|
|
|
|
error: Could not compile `futuretest`.
|
|
|
|
|
|
|
|
To learn more, run the command again with --verbose.
|