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.

main.rs 397B

1234567891011121314151617181920
  1. #![feature(conservative_impl_trait)]
  2. extern crate futures;
  3. extern crate tokio_core;
  4. use futures::future::{self};
  5. use futures::future::*;
  6. use tokio_core::reactor::Core;
  7. fn main() {
  8. let mut core = Core::new().expect("Failed to initialize tokio_core reactor!");
  9. let f = test();
  10. core.run(f).unwrap();
  11. }
  12. fn test() -> MapErr<(), ()> {
  13. future::ok(())
  14. .map_err(|String| ())
  15. }