Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![feature(async_await)]
- struct X { a: u8 }
- async fn foo() {}
- async fn bar() {
- foo() . await
- }
- fn main() {
- let x = X { a: 6 };
- println!("{}", x . a);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement