Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![feature(async_await)]
- use std::future::Future;
- struct S;
- impl S {
- async fn f(&self) {}
- fn wtf(&self) -> impl Future<Output = ()> {
- self.f()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement