Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![feature(futures_api, async_await, await_macro)]
- pub type Error = &'static str;
- struct Test {}
- impl Test {
- pub async fn mutate(&mut self, slice: &[u8]) -> Result<(), Error> {
- Ok(())
- }
- }
- fn main() {
- (Test {}).mutate();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement