Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement