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

Does not compile if trait method without self argument has Self in signature #9

Closed
dtolnay opened this issue Jul 25, 2019 · 0 comments · Fixed by #12
Closed

Does not compile if trait method without self argument has Self in signature #9

dtolnay opened this issue Jul 25, 2019 · 0 comments · Fixed by #12
Labels
bug Something isn't working

Comments

@dtolnay
Copy link
Owner

dtolnay commented Jul 25, 2019

#[async_trait]
trait Trait: Sized {
    async fn f(x: Self) {}
}
error[E0412]: cannot find type `AsyncTrait` in this scope
 --> src/main.rs:5:1
  |
5 | #[async_trait]
  | ^^^^^^^^^^^^^^ not found in this scope
@dtolnay dtolnay added the bug Something isn't working label Jul 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant