Some tests involving futures-rs
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.

18 satır
526B

  1. Compiling futuretest v0.1.0 (file:///mnt/c/Users/Mahmoud/git/futuretest)
  2. error[E0277]: the trait bound `(): futures::Future` is not satisfied
  3. --> src/main.rs:17:1
  4. |
  5. 17 | / fn test() -> MapErr<(), ()> {
  6. 18 | | future::ok(())
  7. 19 | | .map_err(|String| ())
  8. 20 | | }
  9. | |_^ the trait `futures::Future` is not implemented for `()`
  10. |
  11. = note: required by `futures::MapErr`
  12. error: aborting due to previous error
  13. error: Could not compile `futuretest`.
  14. To learn more, run the command again with --verbose.