-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functions with lifetime argument can't be mocked #2
Comments
Thanks for submitting. It’s just not implemented. I’ll fix this soon. Issues like this are helpful for making mry more mature. |
Okay, I see. And thank you for the framework! |
I've published mry 0.2.4, the problem should be resolved. Please reopen this issue if not resolved. |
Still no success... |
Oh, zero-copy things are a bit difficult in current mry features. It's because parameters must be |
We need, otherwise, something like |
I've decided to support lifetime arguments in the future. I have thought about how to do it. It requires a few API changes. |
Functions like
causes
error[E0261]: use of undeclared lifetime name 'a
, and removing#[mry::mry]
fixes the error.Is this a bug or there's some additional syntax for this case?
The text was updated successfully, but these errors were encountered: