-
Notifications
You must be signed in to change notification settings - Fork 69
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
mock! gives " error: unexpected end of input, Unsupported in this context" #143
Comments
Please enable the "nightly" feature of Mockall and try building again. You'll get a much better error message. |
|
Would you mind posting your code someplace where I can copy/paste it? Either push your branch to GH, or just copy/paste the |
You need to remove the visibility specifiers from your |
When mock! fails due to unsupported items in the struct section, print a better error message, including the span. Issue #143
BTW, using |
When mock! fails due to unsupported items in the struct section, print a better error message, including the span. Also, raise syn dependency to 1.0.15. Older versions of syn allowed a visibility specifier on trait items. Issue #143
When mock! fails due to unsupported items in the struct section, print a better error message, including the span. Also, raise syn dependency to 1.0.15. Older versions of syn allowed a visibility specifier on trait items. Issue #143
Previously, it forbade them, and treated the inherent method as having the same visibility as the struct itself. That was occasionally problematic, for example when the mock struct was pub but one of its methods' arguments was not. Relates to issue #143
Previously, it forbade them, and treated the inherent method as having the same visibility as the struct itself. That was occasionally problematic, for example when the mock struct was pub but one of its methods' arguments was not. Relates to issue #143
Here are attached screenshots for reference.
The text was updated successfully, but these errors were encountered: