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

Doesn't support self: Arc<Self> #109

Closed
leoyvens opened this issue Mar 13, 2020 · 2 comments · Fixed by #176
Closed

Doesn't support self: Arc<Self> #109

leoyvens opened this issue Mar 13, 2020 · 2 comments · Fixed by #176
Labels
enhancement New feature or request

Comments

@leoyvens
Copy link

Doesn't seem to work with self types other than self, &self and &mut self.

@asomers
Copy link
Owner

asomers commented Mar 13, 2020

Could you provide an example, please?

@leoyvens
Copy link
Author

@asomers Sure:

#[automock]
trait Foo {
    fn arc_self(self: Arc<Self>) {}
}

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

Successfully merging a pull request may close this issue.

2 participants