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

Outlives vs Trait Goal Syntax Collision #147

Open
compiler-errors opened this issue Oct 14, 2023 · 0 comments
Open

Outlives vs Trait Goal Syntax Collision #147

compiler-errors opened this issue Oct 14, 2023 · 0 comments

Comments

@compiler-errors
Copy link
Member

Both use : in Rust, but the colon is always parsed as outlives in formality.

This was confusing when @jackh726 wrote his projection PR, since it looked like trait goals were failing when they were erroneously parsed as outlives.

Syntax should be changed or some type of validation could perhaps be written to make sure we never try to outlive a trait name on the RHS.

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

No branches or pull requests

1 participant