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.
17 lines
526 B
17 lines
526 B
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 |
|
| |
|
17 | / fn test() -> MapErr<(), ()> { |
|
18 | | future::ok(()) |
|
19 | | .map_err(|String| ()) |
|
20 | | } |
|
| |_^ the trait `futures::Future` is not implemented for `()` |
|
| |
|
= note: required by `futures::MapErr` |
|
|
|
error: aborting due to previous error |
|
|
|
error: Could not compile `futuretest`. |
|
|
|
To learn more, run the command again with --verbose.
|
|
|