SHARE
TWEET

Untitled

a guest Apr 18th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #![feature(futures_api, async_await, await_macro)]
  2. pub type Error = &'static str;
  3.  
  4. struct Test {}
  5. impl Test {
  6.     pub async fn mutate(&mut self, slice: &[u8]) -> Result<(), Error> {
  7.         Ok(())
  8.     }
  9. }
  10.  
  11. fn main() {
  12.     (Test {}).mutate();
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top