-
Notifications
You must be signed in to change notification settings - Fork 70
bug(mock!): Error E0412, Cannot find type K in this scope when using mock! macro #630
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
Comments
@gate2017aloy could you please provide some more information? A minimal example to reproduce the problem would be great. The example you provided can't even compile, because it doesn't include definitions for the StoreNew, StoreSet, and StoreDelete traits. Also, which section of code is triggering that error? The compiler should tell you. |
Hi @asomers We are trying to mock You can refer to the dependencies below
The compile time error is seen in the
The error as mentioned above |
That's still not a complete example. If you think that Mockall has a bug, could you please provide a minimal example? That is, a self-contained example that doesn't rely on external crates and does not contain methods irrelevant to the issue at hand? |
I encountered an issue while using the mockall library to create a mock implementation for store operations in my Rust project. The error message I received is:
error[E0412]: cannot find type
Kin this scope
The text was updated successfully, but these errors were encountered: