Advertisement
Guest User

Untitled

a guest
May 26th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. #![feature(async_await)]
  2.  
  3. struct X { a: u8 }
  4.  
  5. async fn foo() {}
  6.  
  7. async fn bar() {
  8. foo() . await
  9. }
  10.  
  11. fn main() {
  12. let x = X { a: 6 };
  13. println!("{}", x . a);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement