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
Can't mock trait with Option<&str> without an explicit lifetime name:
#[cfg(test)] mod tests { use mockall::*; #[automock] pub trait Mailer { fn send(&self, email: Option<&str>); } }
Error:
error[E0637]: `&` without an explicit lifetime name cannot be used here --> modules\user\src\services\entry\usecase.rs:32:38 | 32 | fn send(&self, email: Option<&str>); | ^ explicit lifetime name needed here error[E0106]: missing lifetime specifier --> modules\user\src\services\entry\usecase.rs:32:38 | 32 | fn send(&self, email: Option<&str>); | ^ expected lifetime parameter
The text was updated successfully, but these errors were encountered:
Duplicate of #61 .
Sorry, something went wrong.
No branches or pull requests
Can't mock trait with Option<&str> without an explicit lifetime name:
Error:
The text was updated successfully, but these errors were encountered: