a-mir-formality icon indicating copy to clipboard operation
a-mir-formality copied to clipboard

Outlives vs Trait Goal Syntax Collision

Open compiler-errors opened this issue 2 years ago • 0 comments

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.

compiler-errors avatar Oct 14 '23 06:10 compiler-errors