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
This example doesn't work on master (but it did in 0.5.1):
struct X<T: Debug>(T); #[automock] trait Foo { fn foo<T: Debug + 'static>(&self, x: X<T>); }
Gives an error:
`T` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
However if I move type bounds to where it works:
where
#[automock] trait Foo { fn foo<T>(&self, x: X<T>) where T: Debug + 'static; }
The text was updated successfully, but these errors were encountered:
The bug was introduced by b2d762e
Sorry, something went wrong.
Fix regression mocking generic methods with type bounds
d974265
generic struct with type bounds on their struct's generic parameters that also have generic methods are probably affected. Fixes #88
946821d
Successfully merging a pull request may close this issue.
This example doesn't work on master (but it did in 0.5.1):
Gives an error:
However if I move type bounds to
where
it works:The text was updated successfully, but these errors were encountered: