We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
&self
Attempting to mock a method with an explicit lifetime for the &self argument will result in a panic.
mock!{ Foo { fn foo<'life0>(&'life0 self, x: u32) -> u32; } }
results in
error: proc macro panicked --> mockall/tests/mock_life0.rs:5:1 | 5 | / mock!{ 6 | | Foo { 7 | | fn foo<'life0>(&'life0 self, x: u32) -> u32; 8 | | } 9 | | } | |_^ | = help: message: An unused lifetime parameter?
The text was updated successfully, but these errors were encountered:
Fix mocking methods with an explicit receiver lifetime
022aa72
Fixes #95
2068c05
Successfully merging a pull request may close this issue.
Attempting to mock a method with an explicit lifetime for the
&selfargument will result in a panic.results in
The text was updated successfully, but these errors were encountered: