Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. #![feature(async_await)]
  2.  
  3. use std::io::Error;
  4.  
  5. fn make_unit() -> Result<(), Error> {
  6. Ok(())
  7. }
  8.  
  9. fn main() {
  10. let fut = async {
  11. make_unit()?;
  12.  
  13. Ok(())
  14. };
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement