You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
futuretest/cargo.out

17 lines
679 B

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 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
error: aborting due to previous error
error: Could not compile `futuretest`.
To learn more, run the command again with --verbose.