Skip to content
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

feat: support generic fn params without static bound #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

audunhalland
Copy link
Owner

@audunhalland audunhalland commented Jul 29, 2024

fixes #52

This is the implementation for #52, which supports fn generic bounds like fn method<T>(&self, arg: T), where T does not have a 'static bound.

It is technically a breaking change, because more trait definitions now require explicit 'static bounds, e.g. the code example from #37. Even if the bound trait that has an implicit 'static super-bound, unimock now requires an extra explicit bound regardless.

I'm unsure if this change is desired, so the PR will be left open for a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support generic input parameters that are not 'static
1 participant