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

Additional trait bounds with auto traits are unhandled #3007

Open
CohenArthur opened this issue May 17, 2024 · 1 comment · May be fixed by #3324
Open

Additional trait bounds with auto traits are unhandled #3007

CohenArthur opened this issue May 17, 2024 · 1 comment · May be fixed by #3324

Comments

@CohenArthur
Copy link
Member

trait A {}

impl dyn A + Send {}
impl dyn A + Send + Sync {}

this code should work, but gccrs reaches an unreachable in the name resolver. Note that this code should work ONLY because the additional trait bounds are auto traits - it would not work if the bound was dyn A + B + C for example.

@CohenArthur
Copy link
Member Author

We probably need to keep going on that road to ensure those additional trait bounds are handled properly during typechecking and everything. But it seems to be the case already so I'm not too worries

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

Successfully merging a pull request may close this issue.

2 participants